-
Bug
-
Resolution: Won't Fix
-
P5
-
7
-
x86
-
windows_xp
Subject: Re: errors when building hotspot-b03 using VS2005
Date: Fri, 01 Dec 2006 17:14:27 +0800
From: Lee Jingbo <###@###.###>
Reply-To: ###@###.###
To: ###@###.###
References:
<###@###.###>
<###@###.###>
It does work after I set USERNAME to ASCII string.
Thanks,
Lee Jingbo
On 12/1/06, *Peter B. Kessler* <###@###.###
<mailto:###@###.###>> wrote:
Lee Jingbo wrote:
> hi,
>
> my build environment
> OS: Windows XP SP2 (Simplified Chinese)
> Compiler: VS2005 (Simplified Chinese)
> Boot JDK: JDK 1.7.0-ea-b2
>
>
> when i compile the source, i got errors:
>
> vm_version.cpp
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : error C2220:
> warning treated as error - no 'object' file generated
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : warning
> C4566: character represented by universal-character-name '\u00C0' cannot
> be represented in the current code page (936)
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : warning
> C4566: character represented by universal-character-name '\u00EE' cannot
> be represented in the current code page (936)
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : warning
> C4566: character represented by universal-character-name '\u00BE' cannot
> be represented in the current code page (936)
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : warning
> C4566: character represented by universal-character-name '\u00B2' cannot
> be represented in the current code page (936)
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : warning
> C4566: character represented by universal-character-name '\u00B2' cannot
> be represented in the current code page (936)
>
>
> how can i deal with it?
>
> Thanks,
> Lee Jingbo
I suspect, without having access to a Simplified Chinese Windows
XP SP2 system near at hand to check, that the problem is the line
http://12.101.252.19/hotspot/xref/src/share/vm/runtime/vm_version.cpp#233
<http://12.101.252.19/hotspot/xref/src/share/vm/runtime/vm_version.cpp#233>
231 return VMNAME " (" VM_RELEASE ") for " OS "-" CPU
232 ", built on " __DATE__ " " __TIME__
233 " by " XSTR(HOTSPOT_BUILD_USER) " with "
HOTSPOT_BUILD_COMPILER;
I'm guessing the problem is with the HOTSPOT_BUILD_USER variable,
which is set (via $(BuildUser) on Windows systems) from your
USERNAME environment variable. You could try setting that
environment variable to something more amenable to being in
a C++ character string and see if that helps. If it does help,
we should work on making our code more amenable to users with
names in all Unicode scripts.
... peter
Date: Fri, 01 Dec 2006 17:14:27 +0800
From: Lee Jingbo <###@###.###>
Reply-To: ###@###.###
To: ###@###.###
References:
<###@###.###>
<###@###.###>
It does work after I set USERNAME to ASCII string.
Thanks,
Lee Jingbo
On 12/1/06, *Peter B. Kessler* <###@###.###
<mailto:###@###.###>> wrote:
Lee Jingbo wrote:
> hi,
>
> my build environment
> OS: Windows XP SP2 (Simplified Chinese)
> Compiler: VS2005 (Simplified Chinese)
> Boot JDK: JDK 1.7.0-ea-b2
>
>
> when i compile the source, i got errors:
>
> vm_version.cpp
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : error C2220:
> warning treated as error - no 'object' file generated
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : warning
> C4566: character represented by universal-character-name '\u00C0' cannot
> be represented in the current code page (936)
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : warning
> C4566: character represented by universal-character-name '\u00EE' cannot
> be represented in the current code page (936)
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : warning
> C4566: character represented by universal-character-name '\u00BE' cannot
> be represented in the current code page (936)
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : warning
> C4566: character represented by universal-character-name '\u00B2' cannot
> be represented in the current code page (936)
> D:\temp\hotspot\src\share\vm\runtime\vm_version.cpp(233) : warning
> C4566: character represented by universal-character-name '\u00B2' cannot
> be represented in the current code page (936)
>
>
> how can i deal with it?
>
> Thanks,
> Lee Jingbo
I suspect, without having access to a Simplified Chinese Windows
XP SP2 system near at hand to check, that the problem is the line
http://12.101.252.19/hotspot/xref/src/share/vm/runtime/vm_version.cpp#233
<http://12.101.252.19/hotspot/xref/src/share/vm/runtime/vm_version.cpp#233>
231 return VMNAME " (" VM_RELEASE ") for " OS "-" CPU
232 ", built on " __DATE__ " " __TIME__
233 " by " XSTR(HOTSPOT_BUILD_USER) " with "
HOTSPOT_BUILD_COMPILER;
I'm guessing the problem is with the HOTSPOT_BUILD_USER variable,
which is set (via $(BuildUser) on Windows systems) from your
USERNAME environment variable. You could try setting that
environment variable to something more amenable to being in
a C++ character string and see if that helps. If it does help,
we should work on making our code more amenable to users with
names in all Unicode scripts.
... peter