﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
17597	ImportImagePlugin crashes when opening directory with non-ASCII characters	anonymous	team	"==== What steps will reproduce the problem?
1. Install the ImportImagePlugin plugin.
2. Import an image and browse to a directory with files containing non-ASCII characters.
3. Crash window appears as soon as the directory opens, even before selecting a file.

==== What is the expected result?

Be able to browse a directory containing non-ASCII characters.

==== What happens instead?

The file chooser crashes (JSOM handles the crash just fine so no data is lost).

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Revision:14171
Is-Local-Build:true
Build-Date:2018-08-20 13:25:28

Identification: JOSM/1.5 (14171 SVN en) Linux Ubuntu 18.04.2 LTS
Memory Usage: 513 MB / 3952 MB (168 MB allocated, but free)
Java version: 10.0.1+10-Ubuntu-3ubuntu1, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1200
Maximum Screen Size: 1920x1200
VM arguments: [-Duser.home=${HOME}]
Dataset consistency test: No problems found

Plugins:
+ ImportImagePlugin (34576)
+ ejml (34389)
+ geotools (34513)
+ jts (34524)
+ log4j (34527)

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- W: Region [TMS_BLOCK_v2] Resetting cache
- E: Handled by bug report queue: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/<user.name>/Downloads/Location saisonni��re et location de vacances
- E: Handled by bug report queue: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/<user.name>/Downloads/Location saisonni��re et location de vacances


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: Basic L&F File Loading Thread (130)
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/<user.name>/Downloads/Location saisonni��re et location de vacances
	at java.base/sun.nio.fs.UnixPath.encode(UnixPath.java:145)
	at java.base/sun.nio.fs.UnixPath.<init>(UnixPath.java:69)
	at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:280)
	at java.base/java.nio.file.Paths.get(Paths.java:84)
	at java.desktop/sun.awt.shell.ShellFolder.getShellFolder(ShellFolder.java:247)
	at java.desktop/javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:523)
	at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.run0(BasicDirectoryModel.java:290)
	at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.run(BasicDirectoryModel.java:279)
	at java.base/java.lang.Thread.run(Thread.java:844)
}}}
"	defect	new	normal		Plugin importimage			template_report	
