Modify ↓
Opened 7 years ago
Closed 7 years ago
#16393 closed defect (duplicate)
Cannot make an autosave file because of charset
Reported by: | Zverikk | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
Because of #16392, JOSM fails to write to an autosave file. It creates it with a name like '???? ?????? 1_20180615_135242776.osm', but writing to it fails with "Malformed input: cannot create Слой данных 1_20180615_140709518.osm".
2018-06-15 14:07:09.573 SEVERE: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/zverik/.josm/autosave/???? ?????? 1_20180615_140709518.osm java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/zverik/.josm/autosave/???? ?????? 1_20180615_140709518.osm at sun.nio.fs.UnixPath.encode(UnixPath.java:147) at sun.nio.fs.UnixPath.<init>(UnixPath.java:71) at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281) at java.io.File.toPath(File.java:2234) at org.openstreetmap.josm.tools.Utils.copyFile(Utils.java:397) at org.openstreetmap.josm.gui.io.importexport.OsmExporter.save(OsmExporter.java:90) at org.openstreetmap.josm.gui.io.importexport.OsmExporter.exportData(OsmExporter.java:76) at org.openstreetmap.josm.gui.layer.AutosaveTask.savelayer(AutosaveTask.java:244) at org.openstreetmap.josm.gui.layer.AutosaveTask.run(AutosaveTask.java:273) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)
I suggest using a non-translatable file name, consisting only of ASCII characters.
Additional info:
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2018-06-14 19:38:30 +0200 (Thu, 14 Jun 2018) Build-Date:2018-06-14 17:40:29 Revision:13932 Relative:URL: ^/trunk Identification: JOSM/1.5 (13932 ru) Linux Fedora release 28 (Twenty Eight) Memory Usage: 772 MB / 2644 MB (556 MB allocated, but free) Java version: 1.8.0_171-b10, Oracle Corporation, OpenJDK 64-Bit Server VM Screen: :0.0 1920x1080 Maximum Screen Size: 1920x1080 Java package: java-1.8.0-openjdk:x86_64-1.8.0.171 VM arguments: [-Dawt.useSystemAAFontSettings=lcd] Dataset consistency test: No problems found Plugins: + Mapillary (v1.5.14+post13733) + OpeningHoursEditor (34095) + PicLayer (34170) + apache-commons (34109) + apache-http (34109) + buildings_tools (34212) + contourmerge (1032) + editgpx (34109) + ejml (34126) + geochat (34109) + geojson (80) + geotools (34125) + imagery_offset_db (34209) + jts (34038) + opendata (34196) + pbf (34109) + poly (34098) + reltoolbox (34212) + reverter (34271) + scripting (30785) + todo (30304) + turnrestrictions (34129) + utilsplugin2 (34286) + videomapping-mp (UNKNOWN) + wikipedia (v1.0.1) Map paint styles: - https://dl.dropbox.com/u/8010189/Forum%20attachments/Hide_nodes.mapcss - https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1 Last errors/warnings: - W: Не удалось загрузить стили Mappaint из 'https://dl.dropbox.com/u/8010189/Forum%20attachments/Hide_nodes.mapcss'. Ошибка: java.io.IOException: Запрашиваемый URL https://dl.dropbox.com/u/8010189/Forum%20attachments/Hide_nodes.mapcss не найден - E: java.io.IOException: Запрашиваемый URL https://dl.dropbox.com/u/8010189/Forum%20attachments/Hide_nodes.mapcss не найден - W: No configuration settings found. Using hardcoded default values for all pools. - E: org.openstreetmap.josm.io.IllegalDataException: Строка 1 столбец 1: Premature end of file.. Причина: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] - E: Ошибка - <html>Невозможно прочитать файл '???? ?????? 1_20180615_135242776.osm'.<br>Ошибка:<br>Строка 1 столбец 1: Premature end of file.</html> - E: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: <josm.pref>/autosave/Слой данных 1_20180615_140209518.osm - E: Autosave failed: - E: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: <josm.pref>/autosave/Заметки_20180615_140210567.osn - W: Не удалось удалить помещённый в архив файл резервной копии <josm.pref>/autosave/deleted_layers/�������� ������������ 1_20180526_235420107.osm - E: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: <josm.pref>/autosave/Слой данных 1_20180615_140709518.osm
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Closed as duplicate of #16392.
It would require some work to map layer characters to ASCII and would be error-prone, it's best to fix the underlying encoding issue like you did.