marcomaggi / vicare

A native compiler for Scheme compliant with R6RS
http://marcomaggi.github.com/vicare.html
Other
200 stars 34 forks source link

the character encoding associated to the selected locale is not supported #66

Open marcomaggi opened 10 years ago

marcomaggi commented 10 years ago

In src/ikarus.c the line:

setlocale(LC_ALL, "");

that would make Vicare respect the user selected locale is not executed. This makes the vicare process run under the default and portable C locale, ignoring the user selected one. This is bad.

To support the user selected locale all the strings coming from system function calls must be converted from the outer character encoding to an internal UTF-8, and later to Scheme strings.