CHANGE-PO-CHARSET(1)
β¨ change-po-charset β NAME β¨
change-po-charset β bestie, this is the little tool that goes in and changes the charset value inside the content-type header of a gettext po file π
π¦ SYNOPSIS π¦
change-po-charset <charset> FILENAME1 [ FILENAME2 ...]
πΈ DESCRIPTION πΈ
okay so change-po-charset is a simple Perl script, and it does exactly one (1) thing but it does it flawlessly, no cap π
Here's the vibe: you hand it the file names you want, and it reads them and prints them right back out on standard output β but with one tiny glow-up applied. In the first msgstr string sequence it runs into, it swaps out the "charset" attribute of the Content-Type header and puts in the charset you gave it as the first parameter. that's it. that's the whole job. iconic behavior honestly π
π«Ά bestie please read this part, it's important: it does NOT actually change any character encoding of the contents of the data. like, the bytes stay the bytes. it's just fixing the label on the box, not repacking the box π
It's used by potooledit(1) to fix the content-type header after that thing recodes the file with iconv(1) β so the header stops lying about what's inside. teamwork makes the dream work fr fr π
π SEE ALSO π
π AUTHOR π
change-po-charset was written by Marcin Owsiany <porridge@debian.org> π«Ά absolute legend, we love to see it π
and that's the whole page, bestie!! this one's from the General Commands Manual, dated September 21, 2007 β vintage but still serving π β¨
π¦ where this page comes from
- debian bookworm: potool 0.19-1+b1
- debian trixie: potool 0.19-1+b2
- ubuntu jammy: potool 0.19-1
- ubuntu noble: potool 0.19-1build2
- ubuntu questing: potool 0.19-1build2
- ubuntu resolute: potool 0.19-1build3
- ubuntu stonking: potool 0.19-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms