delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/22/02:36:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Date: Mon, 22 Aug 2011 10:35:51 +0400
From: Ilya Basin <basinilya AT gmail DOT com>
Reply-To: Ilya Basin <basinilya AT gmail DOT com>
Message-ID: <1332896747.20110822103551@gmail.com>
To: corinna-cygwin AT cygwin DOT com
CC: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: env var or mount option for multibyte<->unicode filenames conversion
In-Reply-To: <103846589.20110818141934@gmail.com>
References: <103846589 DOT 20110818141934 AT gmail DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:

> 
> On Aug 18 14:19, Ilya Basin wrote:
> > Hi. Currently, the code page for internal convertion of file names to
> > unicode depends on programs's locale.
> > I want to keep UTF-8 as current locale, but use CP1251 for this
> > conversion. Is it possible?
> 
> Maybe if you describe your problem slightly more detailed?  Why would
> you want CP1251 in a Cygwin application if all other apps are using UTF-8?
> 
> Corinna
> 
Hi! I've just found your reply in web archives; didn't receive a copy
for some reason.

It's for git. Let me repost the question to git list:

Most of our developers use msysgit which stores filenames in CP1251
encoding. Two of us use cygwin and linux.

When checkout on both linux and cygwin, Russian filenames are garbled.

On Cygwin it even worse, because the conversion of invalid UTF-8 chars
to Unicode, made by Cygwin is irreversible, causing git to miss
the files it've just checked out. Workaround for Cygwin is to change
LANG from "C.UTF-8" to "ru_RU.CP1251". It fixes filenames, but brakes
everything else: log (fixed by i18n.logOutputEncoding), status, show,
diff.

-- 


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019