SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
as I ran into an issue today while using external libraries via python (CPLEX in this case), I'd like to ask what the stance on Unicode is.
By default, python is built with support for 16bit Unicode only, i.e. --enable-unicode=ucs2.
But many distributions nowadays have switched to compiling with --enable-unicode=ucs4, which prompted third-party developers to ship their binaries/libraries accordingly, making them impossible to use in Slackware without recompiling python itself and all its dependencies.
The reason I can see against adding configure parameters is the purity and cleanliness of the slackware-shipped binaries, but it doesn't have any other disadvantages I know of.
As, granted, the number of applications relying on this isn't very high, I mostly found references to openssl which is e.g. used in the software "OpsCenter" by Datastax. (googling for PyUnicodeUCS4_Decode and PyUnicodeUCS2_Decode).
I'm thinking if it's there any serious reason to switch to ucs4 from the default ucs2, as the two modes are incompatible, just for solving this two special cases you cite: not that it matters much (I think), but for personal curiosity which are the distributions that are using ucs4?
maybe it's IBM that it's just releasing the python components with this default to conform to a specific distribution to certify its product on a specific platform...
Old post, but Debian and Fedora have switched to UCS4 years ago, don't know the current state of Archlinux though.
Edit: I didn't mention things like numpy and scipy because most users compile them manually anyway, it's more an issue with commercial libraries.