From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2086 invoked by alias); 13 May 2014 21:49:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2074 invoked by uid 89); 13 May 2014 21:49:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oa0-f66.google.com Received: from mail-oa0-f66.google.com (HELO mail-oa0-f66.google.com) (209.85.219.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 13 May 2014 21:49:43 +0000 Received: by mail-oa0-f66.google.com with SMTP id l6so282089oag.5 for ; Tue, 13 May 2014 14:49:42 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.28.195 with SMTP id d3mr45412267obh.19.1400017781995; Tue, 13 May 2014 14:49:41 -0700 (PDT) Received: by 10.76.87.135 with HTTP; Tue, 13 May 2014 14:49:41 -0700 (PDT) Date: Tue, 13 May 2014 22:48:00 -0000 Message-ID: Subject: wget-1.15-1 vx wget-1.13-4, LANG and cron From: First Last To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-05/txt/msg00297.txt.bz2 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 the filename has a . 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