On 01/10/2017 10:31 PM,
bai.aa...@gmail.com wrote:
> I saw some others also have this problem, I have no idea to handle that.
I am travelling and don't have a mac around. From what I recall, the
problem
is that Mac apps get (by default) no environment and thus the normal Unix
locale initialisation fails. I _think_ there is some xml file in the app
in which you can set environment variables. In that case you can set LANG
appropriately and you should be fine.
If you use a UTF-8 based locale, you might also get away using this in
~/.swiplrc:
:- set_encoding(utf8).
Using setlocale/3 may also help.
The proper solution is to use Mac APIs to initialise the locale. I anyone
knows how to do that from plain C, please share it. If anyone has a work
around, please share it too.
Cheers --- Jan
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWI-Prolog" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swi-prolog+...@googlegroups.com
> <mailto:
swi-prolog+...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/swi-prolog.
> For more options, visit
https://groups.google.com/d/optout.