|
From: | Fred Kiefer |
Subject: | [bug #39900] unar: Uncaught exception NSCharacterConversionException, reason: Can't get cString from Unicode string. |
Date: | Sat, 31 Aug 2013 11:32:24 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 |
Follow-up Comment #8, bug #39900 (project gnustep): I think that Eirc was correct with his answer. I found this link when searching for issues with nl_langinfo: http://stackoverflow.com/questions/1558379/whi-is-nl-langinfocodeset-different-from-locale-charmap It explains that you need to call setlocale(LC_ALL, "") first. I have attached a small progam that demonstrated this. If you comment out that line, you will get the wrong result from nl_langinfo. Eric is also correct in that a framework should not call such an important function somewhere in the depths of its implementation. And as GNUstep is just a set of frameworks we go to great pain in base to not set the locale permanently. Most likely it belongs into the main() function of the real application in this case unar. We could thing about adding this call to NSApplicationMain, but that wont help you with a command line program. (file #28966) _______________________________________________________ Additional Item Attachment: File name: default_encoding.c Size:0 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?39900> _______________________________________________ Nachricht gesendet von/durch Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |