Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

macro work with Asian locales?

Asian locales macro
0
Posted

macro work with Asian locales?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123