ERROR: /Applications/SWI-Prolog.app/Contents/swipl/library/win_menu.pl:196: Initialization goal raised exception:
ERROR: file_base_name/2: Cannot represent due to `encoding' (Cannot represent char U0395 using current locale encoding).
When I am trying to consult a file, the program crashes. I have tried everything and I don't know what else can I do. If there is someone who can help me with this.
Thanx
On 12/12/2015 12:48 AM, Nitsa Kara wrote:
> Hi, I have MacBook pro and I am using SWI prolog. When the program
> starts, it appears an error:
>
> ERROR:
> /Applications/SWI-Prolog.app/Contents/swipl/library/win_menu.pl:196:
> Initialization goal raised exception:
>
> ERROR: file_base_name/2: Cannot represent due to `encoding' (Cannot
> represent char U0395 using current locale encoding).
>
>
> When I am trying to consult a file, the program crashes. I have tried
> everything and I don't know what else can I do. If there is someone who
> can help me with this.
This is an open issue. The Mac doesn't pass the language to applications
in the normal way (by setting the LANG environment) and SWI-Prolog doesn't
(yet) use the MacOS framework calls to get the language configured the
Mac way. There are some options:
- Someone helps fixing that stuff ... Carlo, could Qt initialise
the locale for us?
To unsubscribe from this group and stop receiving emails from it, send an email to swi-prolog+...@googlegroups.com.
Visit this group at https://groups.google.com/group/swi-prolog.