You are not logged in.

#1 2013-02-21 18:01:09

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

mimeopen and xdg-open with filename using UTF-8 characters

My system is set to utf8:

[xxxxxx@xxxxxxxxx ~]$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8

I try to open a file with non ASCII characters in it: test_é.pdf

[xxxxxx@xxxxxxxxx ~]$ mimeopen test_é.pdf 
Opening "test_é.pdf" with Xpdf  (application/pdf)
I/O Error: Couldn't open file 'test_é.pdf'

The system is visibly confused about encoding. xdg-open use mimeopen (I do not use a desktop but plain icewm) and fail also (it fallback to open the default browser on the filename). How can I correct this behavior? Is there something I do wrong (or is it a bug of mimeopen). All works well for filenames using ASCII characters.

Edited: Change every locale to UTF-8, including LANG; according to the remark of Cloudef

Last edited by olive (2013-02-21 19:49:52)

Offline

#2 2013-02-21 19:12:01

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: mimeopen and xdg-open with filename using UTF-8 characters

My system is set to utf8:

LANG=C

No, it isn't.

Offline

#3 2013-02-21 19:47:29

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: mimeopen and xdg-open with filename using UTF-8 characters

Cloudef wrote:

My system is set to utf8:

LANG=C

No, it isn't.

Right, I have set up everything to UTF-8 and the problem persists (I updated the first post with this new setup) (Moreover I think LANG should not interfere with this, it should be hadle by the LC_CTYPE variable).

Last edited by olive (2013-02-21 19:50:34)

Offline

Board footer

Powered by FluxBB