[Libreoffice] l10ntools ".src" encoding

Caolán McNamara caolanm at redhat.com
Tue Sep 13 07:11:29 PDT 2011

Looking through l10tools there were some ByteString encoding A to
ByteString encoding B things in there, where pragma's in .src files
seemed to in the past indicate their encoding which would then get
converted to MS1252 (or something of that nature)

As far as I could tell, there are no such pragmas still in use in
any .src file, nor was there any way to change the "destination
encoding" away from 1252, so all it could possibly do is convert from
1252 to 1252, i.e. no-op if I read it correctly.

So I removed it all, which allows me to throw out a goodly part of the
old tools ByteString. Now if there *are* any pragmas that control
encodings in .src files generated somehow the l10ntools will bail out
with an exit(-1) and error message, a build here on some random
languages works fine, so just a heads up if I've missed something

I imagine that in the real-world the .src files are always in utf-8
format ?


More information about the LibreOffice mailing list