#include "fb.h"
#include <locale.h>
Go to the source code of this file.
FBCALL void fb_End |
( |
int |
errlevel) | |
|
With the default "C" locale (which is just plain 7-bit ASCII), our mbstowcs() calls (from fb_wstr_ConvFromA()) fail to convert zstrings specific to the user's locale to Unicode wstrings.
To fix this we must tell the CRT to use the user's locale setting, i.e. the locale given by LC_* or LANG environment variables.
We should change the LC_CTYPE setting only, to affect the behaviour of the codepage <-> Unicode conversion functions, but not for example LC_NUMERIC, which would affect things like the decimal separator used by float <-> string conversion functions.
Definition at line 10 of file init.c.
FBCALL void fb_Init |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
int |
lang |
|
) |
| |
Definition at line 6 of file init.c.
Definition at line 7 of file init.c.