X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 2 Apr 2009 19:52:29 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [1.7] Updated: cygwin-1.7.0-45 Message-ID: <20090402175229.GG12738@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20090331111757 DOT GA22043 AT calimero DOT vinschen DOT de> <200904021430 DOT n32EUuKv024760 AT mail DOT bln1 DOT bf DOT nsn-intra DOT net> <20090402145915 DOT GA18756 AT calimero DOT vinschen DOT de> <20090402171059 DOT GE12738 AT calimero DOT vinschen DOT de> <450B91BCB17B4346BD55B6FE9215AFFF01ACA60D AT DF-M14-05 DOT exchange DOT corp DOT microsoft DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <450B91BCB17B4346BD55B6FE9215AFFF01ACA60D@DF-M14-05.exchange.corp.microsoft.com> User-Agent: Mutt/1.5.19 (2009-02-20) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Apr 2 17:44, Stephan Mueller wrote: > On Apr 2 16:59, Corinna Vinschen wrote: > " 2. Use the environment variable setting of LC_ALL/LC_CTYPE/LANG at > " the moment the console is opened the first time and then never > " change this setting again until the console is closed again. > " > " 3. Change rlogin to call setlocale(LC_ALL, ""); at the start of > " main. > " > " Solution 3 seems not feasible. I'm leaning towards solution 2. Does > " anybody know a reason why we should prefer solution 1? Does anybody > " have another solution? > > How about 2, with a background effort towards 3 for each of the > relevant apps -- just push the setlocale call upstream based on > the Good Idea aspect. Someday, (at this point in the Cygwin > 1.7-to-1.9 transition, perhaps :-) the norm will be for remote > connection apps to call setlocale, 2 can be removed if desired, > and any apps that still break may be considered broken -- to be > fixed with a setlocale(), just like all the now well-behaved > apps which set the precedent due to the effort started now? The problem is this: rlogin or ssh work just fine on any other system even if they don't use setlocale(). The reason is that the terminal window is an independent process from the rlogin/ssh process, while in our case, the Windows console is managed by the running application itself. So, in case of other systems you never have this problem and, given that, I'm wondering if, say, OpenSSH upstream looks friendly on that approach, just to support the Windows console window under Cygwin. Especially given that OpenSSH is not localized at all. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/