lkml.org 
[lkml]   [2000]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] forward port of 16 bit nls (vfat, ntfs, ncpfs,
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.313 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site