Re: bug in basename

2009-05-15 Thread Bruno Haible
Ondrej Bilka wrote: > For encodings like BIG5 if character contains / it could quit prematurely. Eric Blake wrote: > BIG5 is a lousy character encoding for the very > reason that it confuses common ASCII bytes with encoded characters, > depending on shift state. BIG5 does not have shift state. BIG

Re: bug in basename

2009-05-14 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Ondrej Bilka on 5/14/2009 7:47 AM: > Hello, > I realized my fnmatch implementation contains this bug: > For encodings like BIG5 if character contains / it could quit prematurely. > I fixed it by ingoring FNM_PATHNAME till check phase. > Bu

bug in basename

2009-05-14 Thread Ondrej Bilka
Hello, I realized my fnmatch implementation contains this bug: For encodings like BIG5 if character contains / it could quit prematurely. I fixed it by ingoring FNM_PATHNAME till check phase. But as I looked how it is handled in basename.c it isnt handled at all. glibc basename too ignores this. -