Re: [RFC/PATCH v6 02/12] media: Media device

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Cox
Date: Thursday, November 25, 2010 - 11:06 am

On Thu, 25 Nov 2010 12:20:31 -0500
Andy Walls <awalls@md.metrocast.net> wrote:


char is 8bit in all modern C. I have used C compilers with configurable 9
or 7 bit char and such a machine is never going to run Linux without
serious insanity. Even grep in 9bit char is not fun...

The advantage of using u8 is that any casting goes the way you expect
whereas when working with UTF-8 things like

	int x = name[0];

may not produce the expected result otherwise.

Alan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC/PATCH v6 02/12] media: Media device, Andy Walls, (Thu Nov 25, 10:20 am)
Re: [RFC/PATCH v6 02/12] media: Media device, Laurent Pinchart, (Thu Nov 25, 10:30 am)
Re: [RFC/PATCH v6 02/12] media: Media device, Alan Cox, (Thu Nov 25, 11:06 am)