Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Patches to compile and link C::B against wxWidgets 2.8.0

<< < (11/25) > >>

stahta01:

--- Quote from: Pecan on December 19, 2006, 04:57:01 pm ---
--- Quote from: stahta01 on December 19, 2006, 04:24:58 pm ---Could you then fix the line ending issues with this file then. I have to convert from DOS to Mac line ending and then from Mac to DOS line endings to get good diffs on this file. File: src/plugins/contrib/keybinder/keybinder.cpp

Tim S

--- End quote ---

I don't understand. Do you mean that I should change keyBinder to Mac line endings? What about the Linux and Windows users?


--- End quote ---

The file has two types of line endings in it; it makes doing diffs in Windows very hard to do.

Tim S

Pecan:

--- Quote from: stahta01 on December 19, 2006, 05:04:57 pm ---
The file has two types of line endings in it; it makes doing diffs in Windows very hard to do.
Tim S

--- End quote ---

Oh, I'll take a look. Thanks

Pecan:
Can anyone suggest a windows program to convert *.h *.cpp files like:
"unix2dos *.h" ?

As seen below, I can't seem to find a program that works.
thanks


--- Code: ---C:\Usr\Proj\cbKeyBinder\RC3>unix2dos -h
unix2dos 2.2 Copyright (c) 1994-1995 Benjamin Lin. (1995.03.31)
Usage: unix2dos [-hkqV] [-o file ...] [-c convmode] [-n infile outfile ..
 -h --help        give this help
 -k --keepdate    keep output file date
 -q --quiet       quiet mode, suppress all warnings
                  always on in stdin->stdout mode
 -V --version     display version number
 -c --convmode    conversion mode
 convmode         ASCII, 7bit, ISO, default to ASCII
 -o --oldfile     write to old file
 file ...         files to convert in old file mode
 -n --newfile     write to new file
 infile           original file in new file mode
 outfile          output file in new file mode

C:\Usr\Proj\cbKeyBinder\RC3>unix2dos -o cbkeybinder.h
unix2dos: converting file cbkeybinder.h to DOS format ...
unix2dos: can not write to output file
unix2dos: problems converting file cbkeybinder.h

C:\Usr\Proj\cbKeyBinder\RC3>unix2dos cbkeybinder.h
unix2dos: converting file cbkeybinder.h to DOS format ...
unix2dos: can not write to output file
unix2dos: problems converting file cbkeybinder.h

C:\Usr\Proj\cbKeyBinder\RC3>unix2dos cbkeybinder.h cbkeybinder.h2
unix2dos: converting file cbkeybinder.h to DOS format ...
unix2dos: can not write to output file
unix2dos: problems converting file cbkeybinder.h

C:\Usr\Proj\cbKeyBinder\RC3>unix2dos -n cbkeybinder.h cbkeybinder.h2
unix2dos: converting file cbkeybinder.h to file cbkeybinder.h2 in DOS for

unix2dos: can not write to output file
unix2dos: problems converting file cbkeybinder.h to file cbkeybinder.h2

--- End code ---

stahta01:
I tried to use unix2dos and dos2unix and failed.

I am doing it with UltraEdit; They have a 30 day trial. http://www.ultraedit.com/
http://www.ultraedit.com/index.php?name=Downloads&d_op=getit&lid=1

While it is good doing one file, it is NOT a good solution for many files at once.

Tim S

I do this on the bad file to fix it.
"File" -> "Conversions" -> "DOS to Mac"
"File" -> "Conversions" -> "Unix/Mac to DOS"

Edit: Looking for the SED script I used 3 or 4 months ago, could NOT find it. I ended up using Ultra-edit because it worked better for me.

stahta01:
This gives me the best result on the file keybinder.cpp

dos2unix *.cpp
unix2dos --convmode Mac *.cpp
unix2dos *.cpp

Edit: I am going to keep trying the results are NOT great looking


Tim S

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version