Closed
Bug 401089
Opened 19 years ago
Closed 17 years ago
abook.mab newline characters are <CR> instead of <LF>
Categories
(MailNews Core :: Database, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: aleph, Assigned: Bienvenu)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8
Build Identifier: 2.0.0.6 (20070728) and 3.0a1pre (2007102403)
Creating a new abook.mab, or editing one created with a Linux build of Thunderbird: in the new file the newlines are CR only (0x0D) instead of LF (0x0A) as should be in OS X. Seems like a legacy from Mac OS classic.
Very inconvenient when sharing the same abook.mab between different OSes, every time an entry is edited the whole file is modified.
Reproducible: Always
Steps to Reproduce:
1. Save or edit an entry in address book
2. Check abook.mab format.
3.
Comment 1•19 years ago
|
||
The mork structure documentation (http://developer.mozilla.org/en/docs/Mork_Structure) states that:
Mork considers any combination of CR or LF (#xD or #xA) to be a line ending, taken singly or in pairs.
In addition, the whitespace section states that #xD and #xA are both considered as whitespace.
I expect therefore we write the file in the native manner for the OS that we are on at the time.
Moving to Core/Mailnews Database as that's the more approriate place for this type of bug as it would also affect the .msf files. David may be able to comment on if we should fix this or not.
Assignee: nobody → bienvenu
Component: Address Book → MailNews: Database
Product: Thunderbird → Core
QA Contact: address-book → database
| Assignee | ||
Comment 2•19 years ago
|
||
I believe this is invalid. Is there any evidence that you can't take a linux mab file and drop it into windows and have it work just fine?
| Reporter | ||
Comment 3•19 years ago
|
||
Yes, it's not exactly a bug: using the same file, with #xD or #xA, with different platforms works just fine.
I put my abook.mab under version control to use it with different computers. Every time the address book is saved (even withouth changes) on a different OS the whole file is changed and the diff is unreadable, and merging becomes impractical. The advantage of having a text vs binary format is lost in part.
Updated•18 years ago
|
Product: Core → MailNews Core
Comment 4•17 years ago
|
||
Bienvenu in comment #2:
> I believe this is invalid. Is there any evidence that you can't take a linux
> mab file and drop it into windows and have it work just fine?
taking Bienvenu's lead, => invalid
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•