chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] Windows 10, MinGW-W64, Chicken 4.11, "invalid enco


From: Hugo Arregui
Subject: Re: [Chicken-hackers] Windows 10, MinGW-W64, Chicken 4.11, "invalid encoded numeric literal"
Date: Sat, 27 Aug 2016 13:03:03 -0300

Hi everyone,

I had a very similar problem using gtk and chicken, and it was a locale problem. Here you can find a very simple test case to reproduce the problem:

;;
(import chicken scheme foreign)

#>
#include <locale.h>

int main(int argc, char** argv) {
   setlocale(LC_NUMERIC, "es_AR.UTF-8");
   CHICKEN_run(C_toplevel);
   return 0;
}
<#

(return-to-host)
;;

I'm choosing es_AR as locale because that's my main locale, but this is probably related to the fact that here we use "," for decimal points (so it might work with any locale with such property).

HIH,
Regards,
Hugo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]