#808 Wrong SUBLANG_PORTUGUESE macros

closed-fixed
2005-07-28
2005-07-27
No

After experiencing some strange behaviour trying out
gettext on my program, I believe that the macros in
winnt.h (w32api-3.2):

#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

Discussion

  • Earnie Boyd

    Earnie Boyd - 2005-07-28
    • milestone: --> IINR_-_Include_In_Next_Release
    • assigned_to: nobody --> earnie
    • status: open --> closed-fixed
     
  • Earnie Boyd

    Earnie Boyd - 2005-07-28

    Logged In: YES
    user_id=15438

    The problem you report has caused modification in some fashion in the official CVS for the given package. The w32api and
    mingw-runtime official CVS reside in the winsup CVS directory tree for Cygwin. Those package CVS trees are periodically
    merged into the MinGW CVS tree. If you still find problems then please open a new report.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks