﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22830	Exception thrown when file name has Katakana in it	anonymous	team	"==== What steps will reproduce the problem?
1. Use image plugin
2. Open a folder with a file that has Katakana

==== What is the expected result?
Folder opens
==== What happens instead?
Folder opens with a popup saying a bug was encountered
==== Please provide any additional information below. Attach a screenshot if possible.

I have a jpg in my images folder called ""kyonpalm - シルクＳＥＡ.jpeg"", I think this is what caused it. Perhaps it is not reading the files names in Unicode?

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-03-01 15:17:42 +0100 (Wed, 01 Mar 2023)
Revision:18678
Build-Date:2023-03-02 02:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18678 en) Linux Ubuntu 22.04.2 LTS
Memory Usage: 876 MB / 8012 MB (487 MB allocated, but free)
Java version: 11.0.16+8-post-Ubuntu-0ubuntu120.04, Ubuntu, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 3840×1080 (scaling 1.00×1.00)
Maximum Screen Size: 3840×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: ANSI_X3.4-1968
System property sun.jnu.encoding: ANSI_X3.4-1968
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: KDE
VM arguments: [-Duser.home=${HOME}]
Dataset consistency test: No problems found

Plugins:
+ PicLayer (1.0.2)

Last errors/warnings:
- 00152.350 E: Handled by bug report queue: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/<user.name>/Pictures/kyonpalm - ������������������.jpeg



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: Basic L&F File Loading Thread (62)
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/alex/Pictures/kyonpalm - ������������������.jpeg
	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:279)
	at java.base/java.nio.file.Path.of(Path.java:147)
	at java.base/java.nio.file.Paths.get(Paths.java:69)
	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:300)
	at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.run(BasicDirectoryModel.java:289)
	at java.base/java.lang.Thread.run(Thread.java:829)
}}}
"	defect	closed	normal		Core		duplicate	template_report	
