Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-14 Thread Dr. Volker Zell
 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



Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-14 Thread Dr. Volker Zell
 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.
[EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
11:21 AM [540] cygpath -A -P
/c/Dokumente und Einstellungen/All Users/Startmenn/Programme
[EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
11:21 AM [541] ls -d `cygpath -A -P`
/c/Dokumente und Einstellungen/All Users/Startmen?/Programme/
[EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
11:21 AM [541] /c/WINNT/system32/chcp.com 1252
Aktive Codepage: 1252.
[EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
11:21 AM [542] cygpath -A -P
/c/Dokumente und Einstellungen/All Users/Startmen³/Programme
[EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
11:21 AM [543] ls -d `cygpath -A -P`
/c/Dokumente und Einstellungen/All Users/Startmen?/Programme/
[EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
11:21 AM [543] /c/WINNT/system32/chcp.com 437
Aktive Codepage: 437.
[EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
11:22 AM [544] cygpath -A -P
/c/Dokumente und Einstellungen/All Users/Startmen3/Programme
[EMAIL PROTECTED] /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



Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-14 Thread Alexander Gottwald
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
-- 
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723


Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-14 Thread Igor Pechtchanski
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.
 [EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
 11:21 AM [540] cygpath -A -P
 /c/Dokumente und Einstellungen/All Users/Startmenn/Programme
 [EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
 11:21 AM [541] ls -d `cygpath -A -P`
 /c/Dokumente und Einstellungen/All Users/Startmen?/Programme/
 [EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
 11:21 AM [541] /c/WINNT/system32/chcp.com 1252
 Aktive Codepage: 1252.
 [EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
 11:21 AM [542] cygpath -A -P
 /c/Dokumente und Einstellungen/All Users/Startmen?/Programme
 [EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
 11:21 AM [543] ls -d `cygpath -A -P`
 /c/Dokumente und Einstellungen/All Users/Startmen?/Programme/
 [EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
 11:21 AM [543] /c/WINNT/system32/chcp.com 437
 Aktive Codepage: 437.
 [EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
 11:22 AM [544] cygpath -A -P
 /c/Dokumente und Einstellungen/All Users/Startmen3/Programme
 [EMAIL PROTECTED] /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/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,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


Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-14 Thread Harold L Hunt II
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


Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-14 Thread Dr. Volker Zell
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
[EMAIL PROTECTED] /
07:16 PM [501] echo $CYGWIN
codepage:ansi
[EMAIL PROTECTED] /
07:16 PM [502] cygpath -P -A
/c/Dokumente und Einstellungen/All Users/Startmenü/Programme
[EMAIL PROTECTED] /
07:16 PM [503] ls -d --show-control-chars `cygpath -P -A`
/c/Dokumente und Einstellungen/All Users/Startmenü/Programme/

Ciao
  Volker



Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-13 Thread Benjamin Riefenstahl
Hi Igor,


Igor Pechtchanski [EMAIL PROTECTED] 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



Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-13 Thread Benjamin Riefenstahl
Benjamin Riefenstahl [EMAIL PROTECTED] writes:
 and IBM encodings are identified by their number in IBM's codepage

  and OEM encodings ... 



Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-13 Thread Harold L Hunt II
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


Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-13 Thread Harold L Hunt II
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



Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-12 Thread Harold L Hunt II
[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


Re: x-start-menu-icons doesn't install on a W2K german OS

2004-03-12 Thread Igor Pechtchanski
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/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,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


x-start-menu-icons doesn't install on a W2K german OS

2004-03-12 Thread Dr. Volker Zell
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
[EMAIL PROTECTED] /c/Dokumente und Einstellungen/All Users
11:13 AM [514] ls -lat --show-control-chars
total 0
drwxr-xr-x+   9 root admin4096 Mar 12 10:59 ./
drwxrwxrwx+   3 vzelladmin   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 admin4096 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/
[EMAIL PROTECTED] /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