Mail Archives: cygwin/2013/03/04/23:17:25
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_DB
|
X-Spam-Check-By: | sourceware.org
|
X-Received: | by 10.68.233.229 with SMTP id tz5mr33422108pbc.172.1362457018579; Mon, 04 Mar 2013 20:16:58 -0800 (PST)
|
Message-ID: | <513571B6.4040109@gmail.com>
|
Date: | Tue, 05 Mar 2013 12:16:54 +0800
|
From: | Arthur Tu <arthur DOT jim DOT tu AT gmail DOT com>
|
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3
|
MIME-Version: | 1.0
|
To: | cygwin AT cygwin DOT com
|
Subject: | Re: Change the locale in cygwin terminal for diskpart results
|
References: | <1362415774669-96611 DOT post AT n5 DOT nabble DOT com> <5134DE72 DOT 7000606 AT gmail DOT com> <51350B67 DOT 7070207 AT towo DOT net>
|
In-Reply-To: | <51350B67.7070207@towo.net>
|
X-IsSubscribed: | yes
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.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
|
Note-from-DJ: | This may be spam
|
On 3/5/2013 5:00 AM, Thomas Wolff wrote:
> Am 04.03.2013 18:48, schrieb marco atzeri:
>> On 3/4/2013 5:49 PM, dbpradeep wrote:
>>> Hi,
>>>
>>> How can I change the locale in cygwin terminal for a session from
>>> english to
>>> say french and then run diskpart commands say list disk, to get the
>>> results
>>> in french
>>>
>>>
>>
>> diskpart does not belong to cygwin, so it behave differently
>> than cygwin programs
>>
>> For cygwin programs define LANG to your preferred setting:
>>
>> $ export LANG=fr_FR.UTF-8
>>
>> $ diskpart /?
>>
>> Microsoft DiskPart version 6.1.7601
>> Copyright (C) 1999-2008 Microsoft Corporation.
>> On computer: MARCOATZERI
>>
>> Microsoft DiskPart syntax:
>> diskpart [/s <script>] [/?]
>>
>> /s <script> - Use a DiskPart script.
>> /? - Show this help screen.
>>
>>
>> $ ls --help
>> Utilisation : ls [OPTION]... [FILE]...
>> Liste des informations à propos des FILE(s) (du répertoire actuel par
>> défaut).
>> Trie les entrées alphabétiquement si aucune des options -cftuvSUX ou
>> --sort
>> n'est utilisées.
>> Les arguments obligatoires pour les options longues le
>> [cut]
> For Windows tools, as far as I know, you could only change the Region
> and Language settings - Extended settings, in System Control, and then
> need to reboot, so this is not flexible (at least in Windows XP).
> A related problem, though not an answer to your question, is the
> problem of the character set.
> Again, Windows tools use a completely different mechanism than cygwin.
> Worse, different tools follow different criteria. The character
> encoding for diskpart can be configured with the "codepage" setting at
> runtime, like this in a Cygwin Terminal (mintty):
>
> $ diskpart "/?"
> Microsoft DiskPart Version 5.1.3565
> ...
> Syntax fâ–’r Microsoft-Datentrâ–’gerpartitionierung:
> ...
> $ chcp.com 65001
> Aktive Codepage: 65001.
> $ diskpart "/?"
> Microsoft DiskPart Version 5.1.3565
> ...
> Syntax für Microsoft-Datenträgerpartitionierung:
> ...
>
> For this reason, it would actually be nice if some cygwin component
> could synchronize settings (implicitly set chcp following the locale).
> On the other hand, this does not help with all tools (probably because
> they use different ones among the variety of output mechanisms
> available in Windows):
>
> $ xcopy
> Unzulâ–’ssige Parameteranzahl
> $ chcp.com 65001
> $ xcopy
> Unzulâ–’ssige Parameteranzahl
>
> ------
> Thomas
>
To avoid this mess, when i need to reinstall windows, i installed a
english version instead...
--
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 -