GNU bug report logs -
#14908
Problem opening attachments that contain umlauts
Previous Next
Reported by: Stefan Reichör <stefan <at> xsteve.at>
Date: Fri, 19 Jul 2013 13:04:02 UTC
Severity: normal
Found in version 5.13
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 14908 <at> debbugs.gnu.org (full text, mbox):
Hi Lars!
> Hi Lars!
>
> Thanks for looking into this.
>
>> Stefan Reichör <stefan <at> xsteve.at> writes:
>>
>>> I am not sure if it is an emacs misconfiguration or a gnus problem.
>>>
>>> When I get an attachment that contains umlauts in the filename I am not
>>> able to open it (I have to save it first and then I can open it)
>>>
>>> I have attached a small pdf file without an umlaut and one containig an umlaut.
>>
>> I'm unable to reproduce this bug.
>>
>> These are the messages I get when I hit `RET' on the two attachments:
>>
>> Viewing with /usr/bin/xdg-open %s
>> Displaying /usr/bin/xdg-open /tmp/emm.2023yDH/\ö.pdf...done
>> Viewing with /usr/bin/xdg-open %s
>> Displaying /usr/bin/xdg-open /tmp/emm.2023_NN/a.pdf...done
>>
>> What messages do you get?
>
> First I used evince to open pdf files. However switching to xdg-open
> does not fix the problem for me:
>
> Viewing with /usr/bin/xdg-open %s
> Displaying /usr/bin/xdg-open /tmp/emm.8325I4U/a.pdf...done
> Viewing with /usr/bin/xdg-open %s
> Displaying /usr/bin/xdg-open /tmp/emm.8325VCb/\ö.pdf...done
>
> xdg-open: file '/tmp/emm.8325VCb/ö.pdf' does not exist
>
> Now I tried the following: I use the log-arg.py script to find out about
> the file name that is sent to the external process (put the following
> line in ~/.mailcap):
> application/pdf; /home/srei/log-arg.py %s; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf
>
> Now I see that ö is encoded as latin-1:
> Char: ö (246, #o366, #xf6, file #xF6) point=18 of 23 (74%) column=17
>
> I guess my system expects unicode.
> I invoked the log-arg.py script from the shell and get cmd-arg1-shell.
>
> I use the following setup in my .emacs:
>
> (prefer-coding-system 'utf-8)
> (set-default-coding-systems 'utf-8)
> (setq file-name-coding-system 'utf-8)
> (setq-default buffer-file-coding-system 'iso-latin-1)
> (set-language-environment 'Latin-1)
I found the problem:
I removed "(set-language-environment 'Latin-1)" from my .emacs and now it works :-)
Without your feedback that this works for you I wouldn't have been able to track this down.
Thanks again!
Stefan.
This bug report was last modified 11 years and 166 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.