After experiencing some strange behaviour trying out
gettext on my program, I believe that the macros in
#define SUBLANG_PORTUGUESE 0x01
#define SUBLANG_PORTUGUESE_BRAZILIAN 0x02
have the value swapped. My system is a Brazilian
Portuguese Win98 SE.
Using GetThreadLocale() + LANGIDFROMLCID + SUBLANGID I
found out that with regional settings set to
"Portuguese (Brazil)" the result was 0x01, and not
0x02. Setting it to "Portuguese (Portugal)" then
produced the value 0x02. So I believe it should be:
#define SUBLANG_PORTUGUESE_BRAZILIAN 0x01
#define SUBLANG_PORTUGUESE 0x02
Log in to post a comment.