[tex-live] Problems with non-7bit characters in filename

Zdenek Wagner zdenek.wagner at gmail.com
Mon Jul 7 14:03:14 CEST 2014


My result (my locale is UTF-8:

$ texlua gmimage.lua  -M "&markers=color:green|label:D|Pergamon
Museum,Berlin&markers=color:blue|label:S|Bode Museum,Berlin" -C
"James-Simon-Park,Berlin" -P "&path=weight:7|color:purple|Bode
Museum,Berlin|Pergamon Museum,Berlin|Neues
Museum,Berlin|James-Simon-Park,Berlin|Henriette-Herz-Platz,Berlin&path=weight:7|color:brown|Simon-James-Park,Berlin|Weinmeisterstraße,Berlin"
-V "Brandenburger Tor,Berlin"
WARNING: LOCATION not specified; using Dante e.V. Office as default!
WARNING: ZOOM not specified; using ZOOM=18 as default!
WARNING: XSIZE not specified; using XSIZE=600 as default!
WARNING: YSIZE not specified; using YSIZE=400 as default!
WARNING: SCALE not specified, using SCALE=1 as default!
WARNING: TYPE not specified; using roadmap as default!
WARNING: IMAGETYPE not specified; using png as default!
WARNING: COLOR not specified; using blue as default!
WARNING: NUMBER not specified; using 1 as default!


gmimage.lua:
url = http://maps.googleapis.com/maps/api/staticmap?center=James%2dSimon%2dPark%2cBerlin&size=600x400&markers=color%3agreen%7clabel%3aD%7cPergamon%20Museum%2cBerlin&markers=color%3ablue%7clabel%3aS%7cBode%20Museum%2cBerlin&maptype=roadmap$scale=1&format=png&visible=Brandenburger%20Tor%2cBerlin&path=weight%3a7%7ccolor%3apurple%7cBode%20Museum%2cBerlin%7cPergamon%20Museum%2cBerlin%7cNeues%20Museum%2cBerlin%7cJames%2dSimon%2dPark%2cBerlin%7cHenriette%2dHerz%2dPlatz%2cBerlin&path=weight%3a7%7ccolor%3abrown%7cSimon%2dJames%2dPark%2cBerlin%7cWeinmeisterstra%c3%9fe%2cBerlin&sensor=false
output = gmimage.png

2014-07-07 11:48 GMT+02:00 Josef Kleber <josef.kleber at gmx.de>:
> Hi,
>
> Am 07.07.2014 06:24, schrieb Norbert Preining:
>
>> On Mon, 07 Jul 2014, Reinhard Kotucha wrote:
>>>
>>>  From your mail I deduce that you aren't happy with the answers you
>>> got.  But UTF-8 works fine for me, Zdeněk, and maybe everybody else
>>> except you.  Can you tell us *what* doesn't work for you?
>>
>>
>> Reinhard, please, give him a break. There seems to be a bug
>> wrt to latin1 handling when it comes to command line and file
>> treatment.
>
>
> I think there is really a problem. While adding support for Google Maps for
> my getmap package
> (https://bitbucket.org/kleberj/getmap/raw/ee40738fc90e492745f2228cac8fbd397a592653/dev/scripts/getmap/gmimage.lua),
> i encountered problems with non-UTF-8 command line options:
>
> texlua gmimage.lua -M "&markers=color:green|label:D|Pergamon
> Museum,Berlin&markers=color:blue|label:S|Bode Museum,Berlin" -C
> "James-Simon-Park,Berlin" -P "&path=weight:7|color:purple|Bode
> Museum,Berlin|Pergamon Museum,Berlin|Neues
> Museum,Berlin|James-Simon-Park,Berlin|Henriette-Herz-Platz,Berlin&path=weight:7|color:brown|Simon-James-Park,Berlin|Weinmeisterstraße,Berlin"
> -V "Brandenburger Tor,Berlin"
>
> fails (only the last path is absent) because of ß in Weinsteinstraße,
> whereas
>
> texlua gmimage.lua -M "&markers=color:green|label:D|Pergamon
> Museum,Berlin&markers=color:blue|label:S|Bode Museum,Berlin" -C
> "James-Simon-Park,Berlin" -P "&path=weight:7|color:purple|Bode
> Museum,Berlin|Pergamon Museum,Berlin|Neues
> Museum,Berlin|James-Simon-Park,Berlin|Henriette-Herz-Platz,Berlin&path=weight:7|color:brown|Simon-James-Park,Berlin|Weinmeisterstrasse,Berlin"
> -V "Brandenburger Tor,Berlin"
>
> works (only ASCII). I tracked the problem down to a different encoding of ß
> to Weinmeisterstra%dfe (lua) or Weinmeisterstra%C3%9Fe (bash version +
> wget).
>
> Strangely, that even does not work when calling texlua from bash (Cygwin),
> which uses UTF-8.
>
> Running texlua (Windows) with an utf-8-encoded script does not seem to be a
> problem, but handing over command line options is! I wonder if the first
> texlua call does work on Linux and/or MiKTeX. Can somebody test?
>
> Josef
>
>



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmimage.png
Type: image/png
Size: 59809 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20140707/9de73156/attachment-0001.png>


More information about the tex-live mailing list