* wincap.h (wincaps::has_always_all_codepages): New element.
* wincap.cc: Implement above element throughout. * wchar.h (__sjis_mbtowc): Declare. (__eucjp_mbtowc): Ditto. (__gbk_mbtowc): Ditto. (__kr_mbtowc): Ditto. (__big5_mbtowc): Ditto. * syscalls.cc (internal_setlocale): Convert to char * function. Return parameter by default. Return NULL if request to use a charset can't be satisfied due to missing codepage support in the underlying OS. Fix comment. (setlocale): Store original locale. Restore to original locale if internal_setlocale returns NULL.
This commit is contained in:
@@ -28,6 +28,11 @@ extern mbtowc_f __ascii_mbtowc;
|
||||
extern mbtowc_f __utf8_mbtowc;
|
||||
extern mbtowc_f __iso_mbtowc;
|
||||
extern mbtowc_f __cp_mbtowc;
|
||||
extern mbtowc_f __sjis_mbtowc;
|
||||
extern mbtowc_f __eucjp_mbtowc;
|
||||
extern mbtowc_f __gbk_mbtowc;
|
||||
extern mbtowc_f __kr_mbtowc;
|
||||
extern mbtowc_f __big5_mbtowc;
|
||||
|
||||
typedef int wctomb_f (struct _reent *, char *, wchar_t, const char *,
|
||||
mbstate_t *);
|
||||
|
Reference in New Issue
Block a user