Mail Archives: cygwin/2006/11/30/12:32:35
On Thu, 30 Nov 2006, Brian Dessent wrote:
> John Love-Jensen wrote:
>
> > I can always fallback to use scripts for CMD.EXE to manipulate these
> > files; but I'd rather be able to do it in my Bash shell scripts.
> >
> > Please don't suggest Interix, SFU or MKS alternatives. Those are fine
> > products, I'm sure, but I'm not interested.
>
> I'm afraid you're probably just out of luck. If I understand the
> problem Cygwin currently does not use wide characters internally for
> filenames/pathnames, nor does it support any locale other than "C"/posix
> (the latter due to newlib limitations.)
The former is true, the latter is half-true. Cygwin works with the
default codepage when the Windows locale settings are set correctly. You
cannot *switch* locales programmatically from within Cygwin, but it can
handle the full 8-bit charset just fine.
> So you're limited to ANSI filenames in the current codepage, I think.
Not sure what ANSI means in this context (if you meant ASCII, or 7-bit,
then the codepage reference makes no sense). If the codepage is set
correctly, Cygwin will read those files.
> There is a site out there that maintains a UTF-8 modified Cygwin, and
> these changes have been submitted for inclusion, but the wrapper method
> used did not meet technical muster and so it will remain a third-party
> fork. I am sure everyone would love to see a wchar-sporting Cygwin but
> to do it right will affect a lot of code paths and so it's no trivial
> undertaking.
Right.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Freedom is just another word for "nothing left to lose"... -- Janis Joplin
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -