[Github-comments] [geany/geany] No localization in Windows version (#2831)

elextr notifications at xxxxx
Tue Jun 22 03:02:07 UTC 2021


To be clear, Geany does not set a locale or read Windows settings.

The locale support in in the POSIX C runtime library does, see [here](https://pubs.opengroup.org/onlinepubs/007904875/basedefs/xbd_chap08.html#tag_08) and Geany is a portable POSIX C application, not a windows only application.  If neither LANG or LC_ALL are set the default is usually "C" or "POSIX" which is set by Windows explicitly in the Windows libraries, half way down [this page](https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/setlocale-wsetlocale?view=msvc-160) it says:

```
At program startup, the equivalent of the following statement is executed:

setlocale( LC_ALL, "C" );
```

The use of environment variables happens within the POSIX C language libraries and is not under Geany's control.  You could argue that the Windows POSIX C runtime should fall back to the Windows setting, not "C", since its allowed to be implementation defined.  But you would have to take that up with Windows or the MSYS folks that provide the POSIX library Geany uses.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2831#issuecomment-865490414
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210621/88bf3843/attachment.htm>


More information about the Github-comments mailing list