"Garrett D'Amore" <garr...@damore.org> wrote: > On Mon, 2010-10-25 at 00:43 -0700, shilpa wrote: > > How would glob feature work, in case multibyte filenames are allowed? > > Because a multibyte character is a combination of more than one character, > > which includes glob characters like "{", "[".... > > I'm not sure how globbing would work, frankly. However, I believe UTF8 > and other common multibyte character schemes always have bytes with the > high-order bit set, so that there is never a multibyte character that > has component bytes that collide with ASCII. So this problem should be > a non-issue.
The assumption that multi-byte characters use octets with the high order bit set is only correct for so called stateless locales. Locales that use shift codes behave different. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de (uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code