#43285 [Opn]: Mac style line endings in source files

From: Date: Wed, 14 Nov 2007 20:02:49 +0000
Subject: #43285 [Opn]: Mac style line endings in source files
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119657@lists.php.net to get a copy of this message
ID: 43285 User updated by: ezyang@php.net Reported By: ezyang@php.net Status: Open Bug Type: DBM/DBA related Operating System: Windows Vista PHP Version: 5.2CVS-2007-11-14 (CVS) New Comment: Taking a look at the binary markup of the files, it looks like the newlines are being represent as 0d 0d 0a (\r\r\n) which is not really any type of newline at all. :-) Previous Comments: ------------------------------------------------------------------------ [2007-11-14 18:41:28] ezyang@php.net Microsoft Visual C++ 2005 Express fails when it encounters code with Mac-style newlines. It specifically says "Does not support Mac style newlines, please convert to Windows / Unix style" Maybe a faulty CVS checkout? ------------------------------------------------------------------------ [2007-11-14 11:47:27] jani@php.net Copied from the other report: In the ext/pdo_odbc directory, odbc_driver.c, odbc_stmt.c and php_pdo_odbc_int.h have Mac style newlines. ------------------------------------------------------------------------ [2007-11-14 11:46:26] jani@php.net Exactly what compiler complains about it? Using any sane compiler doesn't cause any complaints. Are they errors / warnings? ------------------------------------------------------------------------ [2007-11-14 04:29:17] ezyang@php.net Description: ------------ ext/dba/dba_db1.c has Mac style newlines, so the compiler complains. Should be an easy fix. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43285&edit=1

« previous php.bugs (#119657) next »