Discussion:
[edk2] build error for Shell.efi
winddy
2015-06-08 12:59:09 UTC
Permalink
Hi experts,
I find in latest code base, build shell.efi will fail:
d:\project\ref\udk_open\ShellPkg\Library\UefiShellLevel2CommandsLib\Parse.c : er
ror C2220: warning treated as error - no 'object' file generated
d:\project\ref\udk_open\ShellPkg\Library\UefiShellLevel2CommandsLib\Parse.c : wa
rning C4819: The file contains a character that cannot be represented in the cur
rent code page (936). Save the file in Unicode format to prevent data loss

build command: build -n 4 -p ShellPkg/ShellPkg.dsc -t VS2008x86 -a X64 -b RELEASE
It was caused by file Parse.c line 193, there is a special char (0x94) after last '^'. Change it to '?'(0x3F), bug is gone.

Thanks.

------------------
BR
winddy_zhang
Qiu, Shumin
2015-06-08 13:35:24 UTC
Permalink
Hi Winddy,
This issue is caused by a Non-ASCII char in Parse.c:193. I have sent a patch to fix it.

Thanks,
Shumin

From: winddy [mailto:***@foxmail.com]
Sent: Monday, June 08, 2015 8:59 PM
To: edk2-devel
Subject: [edk2] build error for Shell.efi

Hi experts,
I find in latest code base, build shell.efi will fail:
d:\project\ref\udk_open\ShellPkg\Library\UefiShellLevel2CommandsLib\Parse.c : er
ror C2220: warning treated as error - no 'object' file generated
d:\project\ref\udk_open\ShellPkg\Library\UefiShellLevel2CommandsLib\Parse.c : wa
rning C4819: The file contains a character that cannot be represented in the cur
rent code page (936). Save the file in Unicode format to prevent data loss

build command: build -n 4 -p ShellPkg/ShellPkg.dsc -t VS2008x86 -a X64 -b RELEASE
It was caused by file Parse.c line 193, there is a special char (0x94) after last '^'. Change it to '?'(0x3F), bug is gone.

Thanks.

------------------
BR
winddy_zhang

Loading...