macro work with Asian locales?
No. The isspace(3C) macro, which tests for standard white-space characters, such as any space, tab, or carriage-return, works only with the single-byte characters of a locale. All Asian and Unicode locales are multibyte locales. Depending on which locale you’re using, isspace(3C) usually checks just the ASCII area of the codeset. For instance, the ja_JP.eucJP (Japanese EUC) multibyte codeset has ASCII/JIS X 0201 for the single-byte portion, and JIS X 0208 for the double-byte portion, JIS X 0201 half-width Katakana for the double-byte portion, and optionally JIS X 0212 for the triple-byte portion. Therefore the multibyte portions won’t be supported by isspace(3C) or related character-handling macros and functions. To check whether a given character is a space character in an Asian locale, use a wide character classification function, such as iswspace(3C). Listed below are several other wide-character library functions that you might want to use. For descriptions, see the man page for ea
Related Questions
- Deploy macro command generates a message that the deploy was successful even though the command was not applied to the device. Why does this happen?
- I am an Asian and wanted to know how does Dr. Lam approach the rejuvenation of aging Asian eyelids differently than with other races?
- macro work with Asian locales?