Re: [Bugme-new] [Bug 8310] New: USB device names are not sanitized for UTF-8

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Fri, 8 Jun 2007, Robert Marquardt wrote:

> Alan Stern schrieb:
> 
> > The current Unicode usage in the kernel is not nearly as simple as you 
> > seem to think.  It includes lots of local assumptions, features that 
> > aren't documented or commented, special-purpose inline code, and so on.  
> > Converting it all to use a single centralized library would be an 
> > immense job.
> 
> It would benefit the kernel though. I see no reason not to do it just 
> because it is a big job. At least the review where Unicode is handled in 
> the kernel should be done. Otherwise no real assessment of the job to be 
> done is possible.

I have already done the review; how else could I have justified the
comments above?

> > "full handling of Unicode"?  You must be kidding.  Do you have any idea 
> > how difficult it is to do something as simple as converting between 
> > lower- and uppercase?
> 
> If it is required somewhere in the kernel then it has to be implemented.
> Yes, i know how hard it is. 100K of tables and 255K of source for a 
> Pascal implementation i know. That includes a regular expression parser, 
> but still it is a big chunk of source.
> You may not ever see a file name in byzantine musical symbols, but there 
> is no reason that a full implementation should not handle that. The 
> trick is to find a way to reduce the size of the lib by selectively 
> compiling out feature levels.

Well, I don't know whether case conversion of Unicode or UTF-8 strings
is needed anywhere in the kernel.  I don't propose to add routines to
handle it in the upcoming library.  If you want to add them, you are
welcome to do so -- assuming you can avoid provoking loud screams of
outrage from people who don't like the idea of adding 355K for a
relatively minor job.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.