Follow-up Comment #33, bug #1981 (project savane):

"If I remember correctly, po-files do not have to be in UTF-8; any 8-bit
encoding is converted automatically, when you "compile" po-file into mo-file
(that is why there is the line "Content-Type: text/plain;
charset=KOI8-R\n")."

Right, but the resulting .mo file will use the exact same encoding as the .po
file -- just check it out yourself and have a look at the savane.mo file for
Russian -- it still uses KOI8-R internally.

The on-the-fly conversion is done by the gettext routines, which will check
the encoding of the .mo file (e.g. KOI8-R) and the encoding of the output
locale (e.g. ru_RU.UTF-8). In the example case, the msgstr will be converted
from KOI8-R to UTF-8. If the output locale is ru_RU, the implied encoding is
KOI8-R, so no conversion would be done.

Summary: .po files don't have to be in UTF-8, the necessary conversion is
automatically done. But if Mathieu wants to reduce the usage of CPU cycles for
gettext, .po files should be in UTF-8.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?func=detailitem&item_id=1981>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Savane-dev mailing list
[email protected]
https://mail.gna.org/listinfo/savane-dev

Reply via email to