setlocale behavior

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Mar 7 20:08:48 UTC 2013


On 7 March 2013 20:04, Alexander Varnin <fenixk19 at mail.ru> wrote:

>>> My generated locales.txt table look strange. String ru_RU.UTF-8
>>> ISO-8859-1 may be related to why i get wrong test result. Can anyone
>>> tell me please, if it is so, and what can i do to fix it?

As you can see it's a bad idea to attempt to oursmart the user.
Perhaps you can only add 8859 and UTF-8 if the user provided locale
does not contain '.', that would have saved you from me incorrectly
appending those again.

Care to send a tested patch?

TIA && cheers,


More information about the uClibc mailing list