Problem with wildcard from Windows

Bengt Larsson lists.cygwin@bengtl.net
Wed Dec 30 16:36:00 GMT 2009


I seem to have a problem with wildcards from the Windows command line
when there are high-bit characters in a filename.

A directory contains only the two files "user" and "användare"
("användare" being user in Swedish):

  C:\Documents and Settings\Bengt2\Desktop\test\ttt>ls -l
  total 0
  -rw-r--r-- 1 Bengt2 Users 0 2009-12-30 02:23 användare
  -rw-r--r-- 1 Bengt2 Users 0 2009-12-30 02:23 user
  
  C:\Documents and Settings\Bengt2\Desktop\test\ttt>ls u*
  user
  
  C:\Documents and Settings\Bengt2\Desktop\test\ttt>ls a*
  ls: cannot access a*: No such file or directory
  
  C:\Documents and Settings\Bengt2\Desktop\test\ttt>ls *
  ls: cannot access *: No such file or directory

It works in bash and dash:
  
  C:\Documents and Settings\Bengt2\Desktop\test\ttt>bash
  /users/Bengt2/Desktop/test/ttt: ls u*
  user
  /users/Bengt2/Desktop/test/ttt: ls a*
  användare
  /users/Bengt2/Desktop/test/ttt: ls *
  användare  user

I have LANG and CYGWIN set, but not having them set doesn't change the
outcome.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 15341 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20091230/1136f399/attachment.obj>
-------------- next part --------------
--
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