[tex-live] TeXLive (Windows) bash script -> exe

Heiko Oberdiek heiko.oberdiek at googlemail.com
Wed May 21 07:23:44 CEST 2014


Hello,

On 21.05.2014 04:34, Norbert Preining wrote:
> 
> I have taken Reinhard's advice and included them into the script,
> here is an updated version.
> 
> I cannot guarantee that it works on Windows, I have no easy access,
> but on Unix it works ;-)

>From osmimage.lua:

> -- local file = ltn12.sink.file(io.open(UOFILE, 'wb'))
> -- http.request {
>     -- url = IMGURL,
>     -- sink = file,
> -- } 
> -- gives <html><body><b>Http/1.1 Bad Request</b></body> </html> instead of image
> -- URL encoding for LOCATION??? but works for wget

I have added a function url_encode, found in
  http://lua-users.org/wiki/StringRecipes
and wrapped the user data in url_encode.
Then http.request worked for me, see attached script.

This solves the problem of the dependency on wget
(see Windows/MiKTeX).

Yours sincerely
  Heiko Oberdiek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osmimage2.lua
Type: text/x-lua
Size: 6093 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20140521/515b05da/attachment.bin>


More information about the tex-live mailing list