[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: ChangeLog



  User: cnieves 
  Date: 07/06/09 12:09:36

  Modified:    .        ChangeLog
  Log:
  Avoid writting '\r' to files on MinGW.
  
  
  
  Applied patch #1733826 from Cesar Strauss. Thanks.
  
  When using the "w" mode in fopen, MinGW translates LF into CR-LF. 
  
  This creates havoc when reading the same file again, when sharing 
  
  schematics files with other systems, and when placing them in a VCS.
  
  
  
  This can be avoided by using the "wb" mode. The "b" is ignored on 
  
  all POSIX conforming systems, according to these sources:
  
  
  
  http://www.die.net/doc/linux/man/man3/fopen.3.html
  
  http://www.opengroup.org/onlinepubs/009695399/functions/fopen.html
  
  
  
  There are other ways, however. Adding
  
  
  
  #include <fcntl.h>
  
  int _fmode = _O_BINARY;
  
  
  
  on some source file should work as well. Another way is linking 
  
  against the MinGW supplied binmode.o, which does exactly that.
  
  
  
  
  Revision  Changes    Path
  1.319                eda/geda/gaf/gnetlist/ChangeLog
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ChangeLog
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gnetlist/ChangeLog,v
  retrieving revision 1.318
  retrieving revision 1.319
  diff -u -b -r1.318 -r1.319
  --- ChangeLog	4 Jun 2007 16:15:38 -0000	1.318
  +++ ChangeLog	9 Jun 2007 16:09:36 -0000	1.319
  @@ -1,3 +1,26 @@
  +2007-06-09 Carlos Nieves Onega <cnieves (AT) iespana (DOT) es>
  +
  +	* utils/mk_verilog_syms.c: Avoid writting '\r' to files on MinGW.
  +
  +	Applied patch #1733826 from Cesar Strauss. Thanks.
  +	When using the "w" mode in fopen, MinGW translates LF into CR-LF. 
  +	This creates havoc when reading the same file again, when sharing 
  +	schematics files with other systems, and when placing them in a VCS.
  +
  +	This can be avoided by using the "wb" mode. The "b" is ignored on 
  +	all POSIX conforming systems, according to these sources:
  +
  +	http://www.die.net/doc/linux/man/man3/fopen.3.html
  +	http://www.opengroup.org/onlinepubs/009695399/functions/fopen.html
  +
  +	There are other ways, however. Adding
  +
  +	#include <fcntl.h>
  +	int _fmode = _O_BINARY;
  +
  +	on some source file should work as well. Another way is linking 
  +	against the MinGW supplied binmode.o, which does exactly that.
  +
   2007-05-26 Ales Hvezda   <ahvezda@xxxxxxxxxxxxx>
   
   	* tests/spice-sdb/Makefile.am: Oops, because of the below disable,
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs