在 2026-2-6 17:33, Kirill Makurin 写道:
Hello,

Long time ago I noticed that Microsoft documentation[1] mentions 
SORT_CHINESE_PHONE_BOOK constant which is supposed to be used when creating 
LCID locale corresponding to `zh-CN_phoneb` locale name. However, this constant 
is not defined in both Microsoft's and mingw-w64's headers.

While working on some recent changes in my posix32 library, I came to 
conclusion that this constant is supposed to have value 0x05; see some details 
in commit[2] I pushed to posix32 earlier today.

Should we add this constant to mingw-w64's headers?

Maybe not. If they document a non-existent value, then it should be considered a documentation bug and be fixed. You can request a fix by filing a PR at https://github.com/MicrosoftDocs/win32/pulls. You can click the triple dot in the upper right corner on that page, and there's an Edit option which leads to the Markdown source of it.

I have never heard of something called 'Chinese phone book (surname) order'. In PRC, names in phone books are usually sorted in phonetic order in Mandarin, with surnames coming first, so it's essentially the same with _phonetic order_ (音序) and named like that. In official documents, names are usually sorted in _stroke order_ (笔画序) since it's not subject to homophones or dialects.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to