This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: x-start-menu-icons doesn't install on a W2K german OS
On Sun, 14 Mar 2004, Dr. Volker Zell wrote:
> >>>>> "Igor" == Igor Pechtchanski writes:
>
> Igor> Theoretically, Windows should do the right translation under the covers.
> Igor> It may be as simple as setting the correct codepage or locale before
> Igor> trying to create the path... Not running the localized version of
> Igor> Windows, I can't really investigate this. Volker, do you feel up to it?
> Igor> A simple 'ls -d "`cygpath -A -P`"' should expose the bug, and setting the
> Igor> right locale before this call may make it go away, in which case please
> Igor> report to the list what made it work... :-)
>
> This is all from a console bash window:
>
> 11:21 AM [540]> /c/WINNT/system32/chcp.com 850
> Aktive Codepage: 850.
> vzell@summer /c/Dokumente und Einstellungen/All Users
> 11:21 AM [540]> cygpath -A -P
> /c/Dokumente und Einstellungen/All Users/Startmenn/Programme
> vzell@summer /c/Dokumente und Einstellungen/All Users
> 11:21 AM [541]> ls -d "`cygpath -A -P`"
> /c/Dokumente und Einstellungen/All Users/Startmen?/Programme/
> vzell@summer /c/Dokumente und Einstellungen/All Users
> 11:21 AM [541]> /c/WINNT/system32/chcp.com 1252
> Aktive Codepage: 1252.
> vzell@summer /c/Dokumente und Einstellungen/All Users
> 11:21 AM [542]> cygpath -A -P
> /c/Dokumente und Einstellungen/All Users/Startmen?/Programme
> vzell@summer /c/Dokumente und Einstellungen/All Users
> 11:21 AM [543]> ls -d "`cygpath -A -P`"
> /c/Dokumente und Einstellungen/All Users/Startmen?/Programme/
> vzell@summer /c/Dokumente und Einstellungen/All Users
> 11:21 AM [543]> /c/WINNT/system32/chcp.com 437
> Aktive Codepage: 437.
> vzell@summer /c/Dokumente und Einstellungen/All Users
> 11:22 AM [544]> cygpath -A -P
> /c/Dokumente und Einstellungen/All Users/Startmen3/Programme
> vzell@summer /c/Dokumente und Einstellungen/All Users
> 11:22 AM [545]> ls -d "`cygpath -A -P`"
> /c/Dokumente und Einstellungen/All Users/Startmen?/Programme/
Whoops, sorry, I keep forgetting about aliases. My 'ls' is aliased to 'ls
-F --color=tty --show-control-chars'. That last option would give much
more sensible results in your experiments...
Also, instead of using 'chcp', try adding a "codepage:oem" or
"codepage:ansi" option to your CYGWIN environment variable...
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton