public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* x-start-menu-icons doesn't install on a W2K german OS
@ 2004-03-12 10:28 Dr. Volker Zell
  2004-03-12 18:50 ` *****SPAM***** " Harold L Hunt II
  2004-03-12 18:51 ` Harold L Hunt II
  0 siblings, 2 replies; 14+ messages in thread
From: Dr. Volker Zell @ 2004-03-12 10:28 UTC (permalink / raw)
  To: Cygwin List; +Cc: cygwin-xfree

Hi

see subject. Following is a dir listing (inclusive control-chars) from
my "Documents and Settings" directory on a german W2K system.

11:13 AM [513]> pwd
/c/Dokumente und Einstellungen/All Users
vzell@summer /c/Dokumente und Einstellungen/All Users
11:13 AM [514]> ls -lat --show-control-chars
total 0
drwxr-xr-x+   9 root     admin        4096 Mar 12 10:59 ./
drwxrwxrwx+   3 vzell    admin           0 Mar 12 10:59 Startmen³/     <- got created by setup.exe
drwxrwxr-x+   7 root     system       4096 Apr 13  2003 ../
drwxr-xr-x+   2 root     admin           0 Mar 31  2003 Desktop/
drwxr-xr-x+   3 root     admin        4096 Feb 23  2003 Startmenü/     <- This was there already
drwxrwxrwx+   2 root     admin           0 May 29  2002 DRM/
drwxr-xr-x+   4 root     admin           0 Feb 24  2002 Dokumente/
drwxr-xr-x+   3 root     admin           0 Feb  5  2002 Anwendungsdaten/
drwxr-xr-x+   2 root     admin           0 Feb  5  2002 Vorlagen/
vzell@summer /c/Dokumente und Einstellungen/All Users

Here the relvant part from setup.log.full

2004/03/12 10:59:24 running: D:\\bin\sh.exe -c /etc/postinstall/fontconfig.sh
2004/03/12 10:59:27 running: D:\\bin\sh.exe -c /etc/postinstall/X-start-menu-icons.sh
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\bitmap.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\dpsexec.lnk" failed; does the target directory exist?
dpsexec:Display PostScript command interface:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Tools::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\dpsinfo.lnk" failed; does the target directory exist?
dpsinfo:The Display PostScript extension:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\editres.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\fc-list.lnk" failed; does the target directory exist?
fc-list:List available FreeType fonts:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Toys\glxgears.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\glxinfo.lnk" failed; does the target directory exist?
glxinfo:GLX information:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Toys\ico.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\oclock.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\showrgb.lnk" failed; does the target directory exist?
showrgb:List rgb database:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Games\texteroids.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\viewres.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\wmagnify.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\xbiff.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\xcalc.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\xclock.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\xconsole.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\xcutsel.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\xditview.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\xdpyinfo.lnk" failed; does the target directory exist?
xdpyinfo:Display information:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\xdvi.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Editors\xedit.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\xev.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Toys\xeyes.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\xfontsel.lnk" failed; does the target directory exist?
xfontsel:Pick a font:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Tools::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\xfsinfo.lnk" failed; does the target directory exist?
xfsinfo:The font server:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Toys\xgc.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\xkill.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Toys\xlogo.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\xlsatoms.lnk" failed; does the target directory exist?
xlsatoms:List available atoms:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\xlsclients.lnk" failed; does the target directory exist?
xlsclients:List all connected clients:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\xlsfonts.lnk" failed; does the target directory exist?
xlsfonts:List all available fonts:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\xmag.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\xman.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\xmh.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\xprop.lnk" failed; does the target directory exist?
xprop:Display the propertis of a window:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\xrefresh.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\xterm.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\xtrapinfo.lnk" failed; does the target directory exist?
xtrapinfo:The TRAP extension:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\xvinfo.lnk" failed; does the target directory exist?
xvinfo:The X-Video Extension:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\xwd.lnk" failed; does the target directory exist?
xwd:Dump X11 window image to file:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Tools::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Information\xwininfo.lnk" failed; does the target directory exist?
xwininfo:A single window:/c/Dokumente und Einstellungen/All Users/Startmen³/Programme/Cygwin-X/Information::
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Editors\emacs.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Editors\xemacs.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\Tools\idle.lnk" failed; does the target directory exist?
mkshortcut: Saving "c:\Dokumente und Einstellungen\All Users\Startmen³\Programme\Cygwin-X\rxvt.lnk" failed; does the target directory exist?
2004/03/12 10:59:31 running: D:\\bin\sh.exe -c /etc/postinstall/XFree86-xserv.sh
2004/03/12 10:59:35 mbox note: Installation Complete
2004/03/12 10:59:37 Ending cygwin install



This looks like a code page problem (the ³ is an ü in the Windows
codepage)


Ciao
  Volker


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: *****SPAM***** x-start-menu-icons doesn't install on a W2K german OS
  2004-03-12 10:28 x-start-menu-icons doesn't install on a W2K german OS Dr. Volker Zell
@ 2004-03-12 18:50 ` Harold L Hunt II
  2004-03-12 18:51 ` Harold L Hunt II
  1 sibling, 0 replies; 14+ messages in thread
From: Harold L Hunt II @ 2004-03-12 18:50 UTC (permalink / raw)
  To: cygwin-xfree

Volker,

Dr. Volker Zell wrote:

> Hi
> 
> see subject. Following is a dir listing (inclusive control-chars) from
> my "Documents and Settings" directory on a german W2K system.

Had you ever installed the XFree86-bin-icons package?  Did it work, or 
did it have the same problem?

> This looks like a code page problem (the ³ is an ü in the Windows
> codepage)

Check the output of:

cygpath -A -P

That is how we get the path to that folder.  Other than that, I had no 
ideas why bash would munge this... but my knowledge on this topic is not 
great.  Anyone have some ideas?

Harold


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
  2004-03-12 10:28 x-start-menu-icons doesn't install on a W2K german OS Dr. Volker Zell
  2004-03-12 18:50 ` *****SPAM***** " Harold L Hunt II
@ 2004-03-12 18:51 ` Harold L Hunt II
  2004-03-12 19:02   ` Igor Pechtchanski
  2004-03-14 10:02   ` Dr. Volker Zell
  1 sibling, 2 replies; 14+ messages in thread
From: Harold L Hunt II @ 2004-03-12 18:51 UTC (permalink / raw)
  To: cygwin-xfree

[Let's try this again, this time without passing on the false-positive 
from SpamAssassin]

Volker,

Dr. Volker Zell wrote:

> Hi
> 
> see subject. Following is a dir listing (inclusive control-chars) from
> my "Documents and Settings" directory on a german W2K system.

Had you ever installed the XFree86-bin-icons package?  Did it work, or
did it have the same problem?

> This looks like a code page problem (the ³ is an ü in the Windows
> codepage)

Check the output of:

cygpath -A -P

That is how we get the path to that folder.  Other than that, I had no
ideas why bash would munge this... but my knowledge on this topic is not
great.  Anyone have some ideas?

Harold


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
  2004-03-12 18:51 ` Harold L Hunt II
@ 2004-03-12 19:02   ` Igor Pechtchanski
  2004-03-13 13:38     ` Benjamin Riefenstahl
  2004-03-14 10:21     ` Dr. Volker Zell
  2004-03-14 10:02   ` Dr. Volker Zell
  1 sibling, 2 replies; 14+ messages in thread
From: Igor Pechtchanski @ 2004-03-12 19:02 UTC (permalink / raw)
  To: cygwin-xfree

On Fri, 12 Mar 2004, Harold L Hunt II wrote:

> [Let's try this again, this time without passing on the false-positive
> from SpamAssassin]
>
> Volker,
>
> Dr. Volker Zell wrote:
>
> > Hi
> >
> > see subject. Following is a dir listing (inclusive control-chars) from
> > my "Documents and Settings" directory on a german W2K system.
>
> Had you ever installed the XFree86-bin-icons package?  Did it work, or
> did it have the same problem?
>
> > This looks like a code page problem (the ? is an u in the Windows
> > codepage)
>
> Check the output of:
>
> cygpath -A -P
>
> That is how we get the path to that folder.  Other than that, I had no
> ideas why bash would munge this... but my knowledge on this topic is not
> great.  Anyone have some ideas?
>
> Harold

This is probably an ASCII vs Unicode issue.  Most of Cygwin calls the
ASCII versions of the Windows API.  I'm not sure Cygwin is even
Unicode-aware.  Windows uses Unicode internally to encode the filenames.

Theoretically, Windows should do the right translation under the covers.
It may be as simple as setting the correct codepage or locale before
trying to create the path...  Not running the localized version of
Windows, I can't really investigate this.  Volker, do you feel up to it?
A simple 'ls -d "`cygpath -A -P`"' should expose the bug, and setting the
right locale before this call may make it go away, in which case please
report to the list what made it work... :-)
	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


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
  2004-03-12 19:02   ` Igor Pechtchanski
@ 2004-03-13 13:38     ` Benjamin Riefenstahl
  2004-03-13 14:36       ` Benjamin Riefenstahl
  2004-03-14 10:21     ` Dr. Volker Zell
  1 sibling, 1 reply; 14+ messages in thread
From: Benjamin Riefenstahl @ 2004-03-13 13:38 UTC (permalink / raw)
  To: cygwin-xfree

Hi Igor,


Igor Pechtchanski <pechtcha@cs.nyu.edu> writes:
> This is probably an ASCII vs Unicode issue.  Most of Cygwin calls
> the ASCII versions of the Windows API.  I'm not sure Cygwin is even
> Unicode-aware.  Windows uses Unicode internally to encode the
> filenames.

It's probably that some program is writing scripts in the standard GUI
8-bit encoding (so-called "ANSI").  But program parameters are read in
the console encoding (so-called "OEM") and than Windows re-encodes
them as Unicode and from there to "ANSI" to pass to the actual
process.

The actual console encoding can be set on NT based systems (and only
there) through APIs and the command utility CHCP.COM.  Their handling
by Cygwin also depends on the CYGWIN environment variable.


For background just a short reminder of the Windows encoding mess:

Windows has Unicode and 8-bit versions of all APIs that take string
values.  Most of the Unicode versions only work on NT and it's
descendents, on Windows 9x/Me the Unicode APIs are present but most
just return an error.  The 8-bit versions use different encodings for
different locales.  They are called "ANSI", because they were based on
ANSI/ISO standard encodings when they were first introduced.

Windows consoles do not use those "ANSI" encodings, but another set
called "OEM" encodings, these were inherited from DOS.  Both "ANSI"
and "IBM" encodings are identified by their number in IBM's codepage
registry.  Western Windows versions use 1252 for Windows APIs and 850
in the console.

> Theoretically, Windows should do the right translation under the
> covers.  It may be as simple as setting the correct codepage or
> locale before trying to create the path...

You can't change the encoding on Windows 9x/Me (at least not easily
and not on a vanilla system).  On NT you can use CHCP.COM.


benny


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
  2004-03-13 13:38     ` Benjamin Riefenstahl
@ 2004-03-13 14:36       ` Benjamin Riefenstahl
  2004-03-14  4:55         ` Harold L Hunt II
  0 siblings, 1 reply; 14+ messages in thread
From: Benjamin Riefenstahl @ 2004-03-13 14:36 UTC (permalink / raw)
  To: cygwin-xfree

Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> writes:
> and "IBM" encodings are identified by their number in IBM's codepage

  and "OEM" encodings ... 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
  2004-03-13 14:36       ` Benjamin Riefenstahl
@ 2004-03-14  4:55         ` Harold L Hunt II
  2004-03-14  5:10           ` Harold L Hunt II
  0 siblings, 1 reply; 14+ messages in thread
From: Harold L Hunt II @ 2004-03-14  4:55 UTC (permalink / raw)
  To: cygwin-xfree

I think I have half of a fix for this (will need it to be tested, the 
sooner the better).  The script was using 'cygpath -A -P' to save the 
path to the icon folder in a shell variable.  I figured it might be 
better to instead pass '-A -P' to mkshortcut directly, since it can 
handle those paths; this may avoid the problem entirely, but I won't 
know until someone tests it.

There will still be a remaining problem though: icon removal will still 
fail.  See, mkshortcut doesn't remove shortcuts, and I don't think there 
is a utility in cygutils that does.  So, those that are interested in 
this would either have to add a parameter to mkshortcut to have it 
remove a shortcut, or they would have to create a new utility based on 
mkshortcut (e.g. 'rmshortcut') that would facilitate removal of icons in 
non-US locales.

I'll be released X-start-menu-icons-1.1.0-1 shortly.  Please test it and 
report as soon as possible.

Harold


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
  2004-03-14  4:55         ` Harold L Hunt II
@ 2004-03-14  5:10           ` Harold L Hunt II
  2004-03-14 15:24             ` Alexander Gottwald
  0 siblings, 1 reply; 14+ messages in thread
From: Harold L Hunt II @ 2004-03-14  5:10 UTC (permalink / raw)
  To: cygwin-xfree

Oh darn, it will be slightly more complex than I had hoped.

We will actually have to add an option to mkshortcut to have it create 
all folders on the specified path, because it fails if the folders do 
not exist and we have the same problem if we create the folders from our 
shell script.

Ugh.

Anyone want to take ownership of this?  I think it may be more than I 
have time for.

Harold

Harold L Hunt II wrote:

> I think I have half of a fix for this (will need it to be tested, the 
> sooner the better).  The script was using 'cygpath -A -P' to save the 
> path to the icon folder in a shell variable.  I figured it might be 
> better to instead pass '-A -P' to mkshortcut directly, since it can 
> handle those paths; this may avoid the problem entirely, but I won't 
> know until someone tests it.
> 
> There will still be a remaining problem though: icon removal will still 
> fail.  See, mkshortcut doesn't remove shortcuts, and I don't think there 
> is a utility in cygutils that does.  So, those that are interested in 
> this would either have to add a parameter to mkshortcut to have it 
> remove a shortcut, or they would have to create a new utility based on 
> mkshortcut (e.g. 'rmshortcut') that would facilitate removal of icons in 
> non-US locales.
> 
> I'll be released X-start-menu-icons-1.1.0-1 shortly.  Please test it and 
> report as soon as possible.
> 
> Harold
> 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
  2004-03-12 18:51 ` Harold L Hunt II
  2004-03-12 19:02   ` Igor Pechtchanski
@ 2004-03-14 10:02   ` Dr. Volker Zell
  1 sibling, 0 replies; 14+ messages in thread
From: Dr. Volker Zell @ 2004-03-14 10:02 UTC (permalink / raw)
  To: cygwin-xfree

>>>>> "Harold" == Harold L Hunt writes:

    Harold> Had you ever installed the XFree86-bin-icons package?  Did it work, or
    Harold> did it have the same problem?

I never had.

    >> This looks like a code page problem (the ³ is an ü in the Windows
    >> codepage)

    Harold> Check the output of:

    Harold> cygpath -A -P

This is from an rxvt window:

11:03 AM [501]> cygpath -A -P
/c/Dokumente und Einstellungen/All Users/Startmenü/Programme

and this from a bash console window:

10:57 AM [504]> cygpath -A -P
/c/Dokumente und Einstellungen/All Users/Startmen³/Programme

    Harold> Harold


Ciao
  Volker


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
  2004-03-12 19:02   ` Igor Pechtchanski
  2004-03-13 13:38     ` Benjamin Riefenstahl
@ 2004-03-14 10:21     ` Dr. Volker Zell
  2004-03-14 17:53       ` Igor Pechtchanski
  1 sibling, 1 reply; 14+ messages in thread
From: Dr. Volker Zell @ 2004-03-14 10:21 UTC (permalink / raw)
  To: cygwin-xfree

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

    Igor> 	Igor

Ciao
  Volker


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
  2004-03-14  5:10           ` Harold L Hunt II
@ 2004-03-14 15:24             ` Alexander Gottwald
  2004-03-14 18:15               ` Harold L Hunt II
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Gottwald @ 2004-03-14 15:24 UTC (permalink / raw)
  To: cygwin-xfree

Harold L Hunt II wrote:

> Oh darn, it will be slightly more complex than I had hoped.
>
> We will actually have to add an option to mkshortcut to have it create
> all folders on the specified path, because it fails if the folders do
> not exist and we have the same problem if we create the folders from our
> shell script.

on uninstall: remove installed entries from the directory and remove the
directory if it is empty.

DIR=<using cygpath here>
for shortcut in xterm xload xbiff ...; do
    rm "$DIR/$shortcut"
done
if ls -l "$DIR" | grep -q "^total 0"; then
    rm -r "$DIR"
fi

bye
    ago
NP: Dekoy - Your Heart
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
  2004-03-14 10:21     ` Dr. Volker Zell
@ 2004-03-14 17:53       ` Igor Pechtchanski
  0 siblings, 0 replies; 14+ messages in thread
From: Igor Pechtchanski @ 2004-03-14 17:53 UTC (permalink / raw)
  To: cygwin-xfree

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
  2004-03-14 15:24             ` Alexander Gottwald
@ 2004-03-14 18:15               ` Harold L Hunt II
  0 siblings, 0 replies; 14+ messages in thread
From: Harold L Hunt II @ 2004-03-14 18:15 UTC (permalink / raw)
  To: cygwin-xfree

Alexander Gottwald wrote:
> Harold L Hunt II wrote:
> 
> 
>>Oh darn, it will be slightly more complex than I had hoped.
>>
>>We will actually have to add an option to mkshortcut to have it create
>>all folders on the specified path, because it fails if the folders do
>>not exist and we have the same problem if we create the folders from our
>>shell script.
> 
> 
> on uninstall: remove installed entries from the directory and remove the
> directory if it is empty.
> 
> DIR=<using cygpath here>
> for shortcut in xterm xload xbiff ...; do
>     rm "$DIR/$shortcut"
> done
> if ls -l "$DIR" | grep -q "^total 0"; then
>     rm -r "$DIR"
> fi

That is exactly what we do already, but I believe it will suffer from 
the same problem as using passing the path from cygpath through bash 
when we create the icons.  So, you would be ablet to create the icons 
using my idea, but the attempt to delete them would still delete them 
from the wrong directory...

Harold


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: x-start-menu-icons doesn't install on a W2K german OS
@ 2004-03-14 18:25 Dr. Volker Zell
  0 siblings, 0 replies; 14+ messages in thread
From: Dr. Volker Zell @ 2004-03-14 18:25 UTC (permalink / raw)
  To: cygwin-xfree

Hi Igor

>> Also, instead of using 'chcp', try adding a "codepage:oem" or
>> "codepage:ansi" option to your CYGWIN environment variable...

It looks like codepage:ansi does the trick.


D:\>set CYGWIN=codepage:ansi

D:\>bash
vzell@summer /
07:16 PM [501]> echo $CYGWIN
codepage:ansi
vzell@summer /
07:16 PM [502]> cygpath -P -A
/c/Dokumente und Einstellungen/All Users/Startmenü/Programme
vzell@summer /
07:16 PM [503]> ls -d --show-control-chars "`cygpath -P -A`"
/c/Dokumente und Einstellungen/All Users/Startmenü/Programme/

Ciao
  Volker


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-03-14 18:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-12 10:28 x-start-menu-icons doesn't install on a W2K german OS Dr. Volker Zell
2004-03-12 18:50 ` *****SPAM***** " Harold L Hunt II
2004-03-12 18:51 ` Harold L Hunt II
2004-03-12 19:02   ` Igor Pechtchanski
2004-03-13 13:38     ` Benjamin Riefenstahl
2004-03-13 14:36       ` Benjamin Riefenstahl
2004-03-14  4:55         ` Harold L Hunt II
2004-03-14  5:10           ` Harold L Hunt II
2004-03-14 15:24             ` Alexander Gottwald
2004-03-14 18:15               ` Harold L Hunt II
2004-03-14 10:21     ` Dr. Volker Zell
2004-03-14 17:53       ` Igor Pechtchanski
2004-03-14 10:02   ` Dr. Volker Zell
2004-03-14 18:25 Dr. Volker Zell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).