Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#14068 closed defect (wontfix)

Can't see (and thus can't open) accented files with LC_ALL=C

Reported by: naoliv Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: linux Cc:

Description

I have some files with accents in their names (for example, Capitólio.gpx)
While running JOSM with pt_BR.UTF-8 I can properly see them at the Open dialog (File → Open).

With LC_ALL=C, however, JOSM doesn't display any of these files.

To test, create some test file, like á.osm, export LC_ALL=C, open JOSM and try to locate this file.

JOSM:

Build-Date:2016-11-29 08:43:02
Revision:11345
Is-Local-Build:true

Identification: JOSM/1.5 (11345 SVN en) Linux Debian GNU/Linux testing (stretch)
Memory Usage: 247 MB / 10206 MB (105 MB allocated, but free)
Java version: 1.8.0_111-8u111-b14-3-b14, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1600x900, :0.1 1280x1024
Maximum Screen Size: 1600x1024
Java package: openjdk-8-jre:amd64-8u111-b14-3
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-11
VM arguments: [-Dawt.useSystemAAFontSettings=on]

Plugins:
+ Create_grid_of_ways (32699)
+ FastDraw (33004)
+ ImportImagePlugin (33028)
+ OpeningHoursEditor (33004)
+ PicLayer (33088)
+ RoadSigns (33088)
+ SimplifyArea (33004)
+ apache-commons (32994)
+ buildings_tools (33004)
+ conflation (0.3.0)
+ contourmerge (1030)
+ download_along (32946)
+ editgpx (33004)
+ ejml (32680)
+ geojson (52)
+ geotools (33042)
+ importvec (33088)
+ indoorhelper (33088)
+ jts (32699)
+ log4j (32699)
+ measurement (33088)
+ merge-overlap (33004)
+ opendata (33088)
+ pbf (33004)
+ pdfimport (33004)
+ poly (33004)
+ reverter (33088)
+ scripting (30761)
+ tageditor (33021)
+ todo (30000)
+ turnlanes (33088)
+ turnlanes-tagging (254)
+ turnrestrictions (33088)
+ undelete (32699)
+ utilsplugin2 (33088)

Attachments (0)

Change History (9)

comment:1 by Don-vip, 8 years ago

Keywords: linux added

comment:2 by bastiK, 8 years ago

In LC_ALL=C, the charset is ASCII, so what do you expect?

comment:3 by naoliv, 8 years ago

The problem is that JOSM doesn't display anything, not even with the wrong codification.
For example, in a directory with the files á.html á.odt á.osm á.png and LC_ALL=C exported.

With libreoffice:
https://i.imgur.com/ZjLjSt4.png

Chromium/Chrome:
https://i.imgur.com/5HsVDEq.png

While it doesn't display any name, I can click at the file and open it:
https://i.imgur.com/sZ2UCQE.png

geeqie:
https://i.imgur.com/drZHDSh.png

Firefox:
https://i.imgur.com/zZu4Sf3.png

But with JOSM:
https://i.imgur.com/ap6pSMx.png

comment:4 by bastiK, 8 years ago

As you demonstrated with Chrome, GUI apps don't work properly when LC_ALL=C is set and filenames contain non-ASCII characters. Why do you think JOSM should work with LC_ALL=C, what is the reason to run it like that?

comment:5 by naoliv, 8 years ago

I use LC_ALL=C to report some tickets here and to see the original phrases (in buttons, dialogs, etc). Basically to say the necessary steps to reproduce a problem.

comment:6 by stoecker, 8 years ago

Why not use "--language=en" as commandline argument?

comment:7 by naoliv, 8 years ago

Because I didn't know about this :-)
I guess this ticket can be closed then.
Thank you!

comment:8 by stoecker, 8 years ago

Resolution: wontfix
Status: newclosed

comment:9 by simon04, 8 years ago

An alternative would be to use LC_ALL=en_US.UTF-8.

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.