ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
#50112 [Asn]: compile error with Non-Engish Operating system
by Ben Dot Yan At Msn Dot Com other posts by this author
Nov 7 2009 5:27AM messages near this date
#50112 [NEW]: compile error with Non-Engish Operating system | #50112 [Opn->Asn]: compile error with Non-Engish Operating system
ID:               50112
 User updated by:  ben dot yan at msn dot com
 Reported By:      ben dot yan at msn dot com
 Status:           Assigned
 Bug Type:         Compile Failure
 Operating System: Windows
 PHP Version:      5.3.0
 Assigned To:      pajoye
 New Comment:

First Sorry for the bug title. 

The VC++ and OS are English edition. But the "Regional and Language
Options" are as follows:
[Standards and formats]: Chinese (PRC)
[Location]: China
[Language for non-Unicode programs]: Chinese (PRC)


Previous Comments:
------------------------------------------------------------------------

[2009-11-07 12:22:39] pajoye@[...].net

I can't test what's wrong but I don't see either why this language
setting could affect anything. I have to setup a VM with Chinese to
reproduce this problem (works just fine with Russian, German, French or
Spanish).

------------------------------------------------------------------------

[2009-11-07 10:48:58] ben dot yan at msn dot com

Description:
------------
ext\standard\browscap.c : warning C4819: The file contains a character
that cannot be represented in the current code page (936). Save the file
in Unicode format to prevent data loss
ext\standard\browscap.c(61) : error C2001: newline in constant
ext\standard\browscap.c(62) : warning C4305: '=' : truncation from
'int' to 'char'
ext\standard\browscap.c(62) : error C2146: syntax error : missing ';'
before identifier 't'
ext\standard\browscap.c(89) : error C2001: newline in constant
ext\standard\browscap.c(90) : error C2146: syntax error : missing ':'
before identifier 't'
ext\standard\browscap.c(91) : error C2001: newline in constant
ext\standard\browscap.c(92) : warning C4305: '=' : truncation from
'int' to 'char'
ext\standard\browscap.c(92) : error C2143: syntax error : missing ';'
before 'break'
ext\standard\browscap.c(100) : error C2001: newline in constant
ext\standard\browscap.c(102) : warning C4305: '=' : truncation from
'int' to 'char'
ext\standard\browscap.c(102) : error C2146: syntax error : missing ';'
before identifier 't'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\Bin\cl.exe"' : return code '0x2'
Stop.

Reproduce code:
---------------
setting: 
[Control Panel]-> [Regional and Language Options]->[Advanced]->[Language
for non-Unicode programs] 

if ($select == "English (United States)") {
    // compile successfully. :)
} else if ($select == "Chinese (PRC)"){
    // compile error! :(
}

OS: Windows XP Home
IDE: VC++ 2008 Express + SDK v6.1
PHP: 5.3.0

Expected result:
----------------
compile successfully

Actual result:
--------------
compile error


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50112&edit=1
Thread:
Ben Dot Yan At Msn Dot Com
Ben Dot Yan At Msn Dot Com
pajoye

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved