﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16349	Error when entering a directory containing a file with a non-ASCII character in its name	pdm@…	pdm@…	"==== What steps will reproduce the problem?
1. Make a directory with a gpx file having a non-ASCII character in its name; in my case there is a file named `20180523 182800 Horské kolo.gpx'.
2. Invoke Open File dialog.
3. Try to enter the directory.

Happens in both current tested and latest (13880).

==== What is the expected result?

Open File dialog displays content of the directory.

==== What happens instead?

Bug dialog appears.

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-05-31 00:51:20 +0200 (Thu, 31 May 2018)
Build-Date:2018-05-30 22:58:01
Revision:13878
Relative:URL: ^/trunk

Identification: JOSM/1.5 (13878 en) Linux Debian GNU/Linux 9.4 (stretch)
Memory Usage: 482 MB / 910 MB (379 MB allocated, but free)
Java version: 1.8.0_171-8u171-b11-1~deb9u1-b11, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1200
Maximum Screen Size: 1920x1200
Java package: openjdk-8-jre:amd64-8u171-b11-1~deb9u1
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13+deb9u1

Plugins:
+ Tracer (34109)
+ osmarender (34096)
+ routes (34110)
+ tagging-preset-tester (34109)

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: Handled by bug report queue: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: ${HOME}/osm/neslovice/20180523 182800 Horsk�� kolo.gpx


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: Basic L&F File Loading Thread (49)
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/pdm/osm/neslovice/20180523 182800 Horsk�� kolo.gpx
	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.nio.file.Paths.get(Paths.java:84)
	at sun.awt.shell.ShellFolder.getShellFolder(ShellFolder.java:247)
	at javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:490)
	at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:239)
	at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:228)
}}}
"	defect	closed	normal		Core	tested	duplicate	template_report	
