1 /* Modified (m) 2017 Thomas Wolff: fixed locale/wchar handling */
3 /* wctrans constants */
6 #include "../locale/setlocale.h"
8 /* valid values for wctrans_t */
12 /* valid values for wctype_t */
26 /* internal functions to translate between JP and Unicode */
27 /* note this is not applicable to Cygwin, where wchar_t is always Unicode,
28 and should not be applicable to most other platforms either;
29 * platforms for which wchar_t is not Unicode should be explicitly listed
30 * the transformation should be applied to all non-Unicode locales
31 (also Chinese, Korean, and even 8-bit locales such as *.CP1252)
32 * for towupper and towlower, the result must be back-transformed
33 into the respective locale encoding; currently NOT IMPLEMENTED
36 /* Under Cygwin, wchar_t (or its extension wint_t) is Unicode */
38 #define _jp2uc_l(c, l) (c)
39 #define _uc2jp_l(c, l) (c)
41 wint_t _jp2uc (wint_t);
42 wint_t _jp2uc_l (wint_t, struct __locale_t
*);
43 wint_t _uc2jp_l (wint_t, struct __locale_t
*);