X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Ralf Subject: Re: Internal echo of shell beaves (sometimes) different to external echo Date: Fri, 20 Jul 2012 12:09:00 +0000 (UTC) Lines: 24 Message-ID: References: <50086B4A DOT 6090801 AT laposte DOT net> <20120720082452 DOT GV31055 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Andy Koppe gmail.com> writes: > > It's because setting LC_ALL in a bash script is too late for the bash > process itself, which will be using the default C.UTF-8 locale unless > something else is set when bash is invoked. > Now I understand. Setting LC_ALL before calling ttt.sh works: C:\>set LC_ALL=de_DE C:\>bash ttt.sh CYGWIN_NT-6.0-WOW64 WIESWEG 1.7.15(0.260/5/3) 2012-05-09 10:25 i686 Cygwin Rücken 0000000 R ü c k e n \r \n 0000010 Rücken 0000000 R ü c k e n \n 0000007 Rücken 0000000 R ü c k e n \n 0000007 Thanks! -- 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