Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ PennMUSH
➜ Running the server
➜ Bug in unix2dos and dos2unix?
|
Bug in unix2dos and dos2unix?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Linda
Sweden (164 posts) Bio
|
| Date
| Mon 06 Jan 2003 12:31 AM (UTC) |
| Message
| Not quite a PennMUSH server issue, but related anyway.
I've always used unix2dos.exe and dos2unix.exe to convert my dbs when switching between my windows binary of Penn and Penn on the FreeBSD server we have our game out.
However, all of a sudden that isn't working any longer. Using unix2dos.exe on a db downloaded from the server causes the Windows binary to crash.
This seems to happen only with dbs saved under 1.7.7p3 (the most recent Penn release), but I don't know if the issue is something in my db (but it loads up fine if converted in a text editor) or something in the converters. | | Top |
|
| Posted by
| Meerclar
USA (733 posts) Bio
|
| Date
| Reply #1 on Tue 07 Jan 2003 06:26 AM (UTC) |
| Message
| | Actually, with as many freeware programs as there are to read and save files in *nix format on a windows machine, the converters are largely defunct anyway. My personal favorite just because of the site its on is a lil notepad replacement called metapad. Metapad can be found at http://www.liquidninja.com/metapad - has no filesize limits and wont destroy formatting on *nix files when you open em on a windows machine. With any luck you can just outright replace notepad with it, though XP does seem to have issues with my attempts to do so :/ There are several other very nice free or nearly enough free programs with similar abilities for download if you'd prefer to search for something else. As for your problems cause, I've no clue since I dont deal with Penn or the converters but this is a viable solution if you choose to go with it. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Tue 07 Jan 2003 09:19 PM (UTC) |
| Message
| The converters are pretty simple, and shouldn't cause problems, and it is strange it has suddenly started happening.
What you could do is compare the converted file by my program, and the file converted by another utility and try to identify in what way they are working differently (eg. one extra blank line at the end). |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Linda
Sweden (164 posts) Bio
|
| Date
| Reply #3 on Tue 07 Jan 2003 09:50 PM (UTC) |
| Message
| I've tried doing this manually, and I can't seem to find any difference between a file converted by the converters and by notepad program. Can the comparison be done automatically, somehow?
Definitely an odd situation, but I've tested it several times now, and a db converted with the converters always crashes the binary, leaving this error message in the log: DB: Garbage after quoted string, line 14
However, nothing like that can be found in the db.
Very odd.
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Tue 07 Jan 2003 11:11 PM (UTC) |
| Message
| Crashes at line 14 eh? That makes it simple. Try sending me (by email, zipped up) ...
1. first 20 lines of the original file
2. first 20 lines of the file converted by unix2dos (or dos2unix, whichever is causing the problem)
3. first 20 lines of the file converted with your other program (please say which one it was).
I'll use my unix compare utilities, and other methods, to see the difference. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
21,830 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top