[cmake-developers] CPACK_RESOURCE_FILE_LICENSE character encoding

Eric Noulard eric.noulard at gmail.com
Thu Jan 10 10:55:17 EST 2013


2013/1/10 Nils Gladitz <gladitz at sci-vis.de>:
> I wrote the WiX part and am pondering how to support extended character sets
> without having to provide an extra RTF file.

Sorry I did not connect the dots.

> We've got an english license text file but our company address still
> contains a german umlaut.

Yes I'm french and we do have a bunch of non-ascii characters as well
(including french trema which is just like umlaut)
but we currently avoid those since none of them appear in our address :-]

> I could provide an RTF but I'd prefer not to have two license files.

I think the best way to go would be to try to go for utf-8 encoding which
is relatively widespread nowadays and goes into testing for each CPack
generator which currently use CPACK_RESOURCE_FILE_LICENSE.

Reading/writing utf-8 seems doable in plain C++ without
an example (untested) here: http://utfcpp.sourceforge.net/


-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org



More information about the cmake-developers mailing list