public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* wget-1.15-1 vx wget-1.13-4, LANG and cron
@ 2014-05-13 22:48 First Last
  2014-05-13 22:51 ` Eric Blake
  0 siblings, 1 reply; 2+ messages in thread
From: First Last @ 2014-05-13 22:48 UTC (permalink / raw)
  To: cygwin

I had trouble when I updated to wget-1.15-1.

I have a cron script that grabs a camera picture using
wget.  It failed with the new wget-1.15-1.

1) wget stderr has a line:
     Saving to: 'filename'

In wget-1.13.4-1 the delimiter before the filename is a
backtick and after the filename there is a single quote.
Also if the URL contains a <space> the filename has
a <space>.

In wget-1.15-1 both delimiters are single quotes, at
least with LANG=C.  A space in the URL results in
a "%20" in the filename.


2) wget-1.15-1 is more sensitive to LANG etc.

When I ran the repaired script from bash it worked fine,
but under cron without setting LC_ALL or LANG the
wget-1.15-1 stderr output filename delimiters were wide
characters.

Setting
   export LC_ALL=C LC_CTYPE=C LANG=C
at the top of the cron script returned the single quote
delimiters.  Working fine now.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: wget-1.15-1 vx wget-1.13-4, LANG and cron
  2014-05-13 22:48 wget-1.15-1 vx wget-1.13-4, LANG and cron First Last
@ 2014-05-13 22:51 ` Eric Blake
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Blake @ 2014-05-13 22:51 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]

On 05/13/2014 03:49 PM, First Last wrote:
> I had trouble when I updated to wget-1.15-1.
> 
> I have a cron script that grabs a camera picture using
> wget.  It failed with the new wget-1.15-1.
> 
> 1) wget stderr has a line:
>      Saving to: 'filename'
> 
> In wget-1.13.4-1 the delimiter before the filename is a
> backtick and after the filename there is a single quote.

Yes, this was an intentional change upstream (many GNU projects have
been ditching `' quoting in favor of '' quoting, ever since GNU Coding
Standards were changed in light of modern typography looking ugly
compared to the way it looked 30 years ago when GNU first championed `').

> Also if the URL contains a <space> the filename has
> a <space>.
> 
> In wget-1.15-1 both delimiters are single quotes, at
> least with LANG=C.  A space in the URL results in
> a "%20" in the filename.

Nothing here is cygwin-specific, as I just built wget from stock
upstream.  You'll get better response if you take your issues upstream,
since I suspect they are reproducible on Linux.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-13 22:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-13 22:48 wget-1.15-1 vx wget-1.13-4, LANG and cron First Last
2014-05-13 22:51 ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).