Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#10872 closed defect (fixed)

Please ignore BOM as first character on preset files

Reported by: sommerluk Owned by: team
Priority: normal Milestone: 14.12
Component: Core Version:
Keywords: Cc:

Description

Presets are UTF8 encoded XML files.

If this file starts with BOM (Byte order mark), JOSM doesn’t accept it and reports an error.

Could JOSM simply ommit the BOM as first character?

Attachments (2)

preset_bom.xml (1.1 KB ) - added by sommerluk 10 years ago.
preset_bom.xml
preset.xml (1.1 KB ) - added by sommerluk 10 years ago.
preset.xml

Download all attachments as: .zip

Change History (6)

comment:1 by Don-vip, 10 years ago

Owner: changed from team to sommerluk
Status: newneedinfo

can you please post your preset file and status report? Thanks.

by sommerluk, 10 years ago

Attachment: preset_bom.xml added

preset_bom.xml

by sommerluk, 10 years ago

Attachment: preset.xml added

preset.xml

comment:2 by sommerluk, 10 years ago

Owner: changed from sommerluk to team
Status: needinfonew

preset_bom.xml cannot be loaded with JOSM.

If you try to do so, when you click on “OK” in the settings dialog, you get:

“Preset cannot be readed: <filename>. Use it anyway? Error is: [1:1] Content not allowed in Prolog.]”

However, with preset.xml (same content, but without leading BOM) it works fine.

comment:3 by bastiK, 10 years ago

Resolution: fixed
Status: newclosed

In 7847/josm:

fixed #10872 - handle BOM for preset files

comment:4 by Don-vip, 10 years ago

Milestone: 14.12

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.