#4767 closed bug (invalid)
[StyledEdit] Can't open some styled text files
Reported by: | mpanasyuk | Owned by: | korli |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/StyledEdit | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Some styled text files can't be opened in Haiku StyledEdit - alert with 'Unsupported format' message.
But those same files can be opened with R5 StyledEdit on the same Haiku installation using same Haiku Translator.
See example.
Revision 32975
Attachments (1)
Change History (3)
by , 15 years ago
Attachment: | CPlusPlusWorkshopClass1.txt.zip added |
---|
comment:1 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
The attached file is, despite of its suffix, indeed no text file.
comment:2 by , 15 years ago
The file is basically a text file, but it contains 0 bytes at the end of each line. This technically makes it a non-text file, but most editors handle this case gracefully by stripping them or replacing them with placeholder characters. Just mentioning it, I don't know if it is a good thing to do this. The problem with replacing those characters with something else is that if you open such a file and then safe it again it will pretty much destroy the original data.
Example of styled text file