Change the locale in cygwin terminal for diskpart results

marco atzeri marco.atzeri@gmail.com
Mon Mar 4 17:48:00 GMT 2013


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]


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



More information about the Cygwin mailing list