Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 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 5 years ago.
preset_bom.xml
preset.xml (1.1 KB) - added by sommerluk 5 years ago.
preset.xml

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by Don-vip

Owner: changed from team to sommerluk
Status: newneedinfo

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

Changed 5 years ago by sommerluk

Attachment: preset_bom.xml added

preset_bom.xml

Changed 5 years ago by sommerluk

Attachment: preset.xml added

preset.xml

comment:2 Changed 5 years ago by sommerluk

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 Changed 5 years ago by bastiK

Resolution: fixed
Status: newclosed

In 7847/josm:

fixed #10872 - handle BOM for preset files

comment:4 Changed 5 years ago by Don-vip

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.