Re: [patch] forward port of 16 bit nls (vfat, ntfs, ncpfs,

From: Urban Widmark (urban@svenskatest.se)
Date: Mon Jul 03 2000 - 15:55:07 EST


On Mon, 3 Jul 2000, Petr Vandrovec wrote:

> Also, it looks to me like that 16bit codepages (cp932/936/949/950) use
> '?' (0x3F) for unknown character instead of returning an error code...
> As you cannot convert '?' back to real value, user should be at least
> warned, I think...

In 2.2 yes, but the 2.4 version of uni2char may return -1, as well as set
the output to ?. char2uni should perhaps also return a status code, but
that is unable to fail (at least for all charsets currently available).

I think my suggested changes to ncpfs tests for this, just like the old
code tests for errors, or?

/Urban

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:14 EST