Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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)

CPlusPlusWorkshopClass1.txt.zip (27.5 KB ) - added by mpanasyuk 15 years ago.
Example of styled text file

Download all attachments as: .zip

Change History (3)

by mpanasyuk, 15 years ago

Example of styled text file

comment:1 by axeld, 15 years ago

Resolution: invalid
Status: newclosed

The attached file is, despite of its suffix, indeed no text file.

comment:2 by mmlr, 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.

Note: See TracTickets for help on using tickets.