Bug 39167 - minor locale issue with gcc
Summary: minor locale issue with gcc
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: translation (show other bugs)
Version: 4.3.3
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-12 11:10 UTC by Paulo Lopes
Modified: 2021-08-28 16:11 UTC (History)
1 user (show)

See Also:
Host: i686-pc-mingw32
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paulo Lopes 2009-02-12 11:10:33 UTC
Compiling the following fragment with gcc -Wall gives me a warning
about an unused variable, gcc -Wall -Werror turns that into an error.

int main(int argc, char **argv) {
int i;
return 0;
}

The issue here is if I run this on e.g. XP UK I get messages containing
"warning:" and "error:". Doing the same under XP JPN gives me "error:" and
something unreadable for the warning case (looks like an attempt to read
from a bogus pointer).

I guess that NLS under windows doesn't work as on linux...
Comment 1 Andrew Pinski 2009-02-26 23:01:13 UTC
Actually more likely the locale is UTF8 and not the codepage which was being thought of.