php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75100 cl complains about php-src\ext\calendar\jewish.c
Submitted: 2017-08-21 02:20 UTC Modified: 2017-11-05 04:22 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: di3663 at dingtalk dot com Assigned:
Status: No Feedback Package: *Calendar problems
PHP Version: 7.2.0beta3 OS: win7sp1 x86_64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: di3663 at dingtalk dot com
New email:
PHP Version: OS:

 

 [2017-08-21 02:20 UTC] di3663 at dingtalk dot com
Description:
------------
ext\calendar\jewish.c: warning C4819: 该文件包含不能在当前代码页(936)中表示的字
符。请将该文件保存为 Unicode 格式以防止数据丢失
julian.c
ext\calendar\jewish.c(346): error C2001: 常量中有换行符
ext\calendar\jewish.c(347): error C2001: 常量中有换行符
ext\calendar\jewish.c(365): error C2001: 常量中有换行符
ext\calendar\jewish.c(366): error C2001: 常量中有换行符
ext\calendar\jewish.c(368): error C2001: 常量中有换行符
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\201
7\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\cl.exe"”: 返回代码“0x2”

Stop.


change codepage solve this error

php-src\ext\calendar\jewish.c # set fileencoding=utf-8


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-08-21 09:10 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2017-08-21 09:10 UTC] ab@php.net
Thanks for the report. I'm not sure what you suggest to do. Isn't "set fileencoding" a vim command? And otherwise, all the files in ext/calendar are either ascii or latin1.

Thanks.
 [2017-11-05 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2017-12-01 09:17 UTC] mail at vekwu dot com
you can open jewish.c by texteditor like notepad++.then save it by utf-8 none bom.
because jewish obtain other character maybe means its filename jewish.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 11:01:30 2024 UTC