[PATCH] Fix isspace() and other ctype.h functions to ignore chars 128-255

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Ahmed S. Darwish <darwish.07@...>, Adrian Bunk <bunk@...>, Casey Schaufler <casey@...>, Andrew Morton <akpm@...>, <linux-security-module@...>, LKML Kernel <linux-kernel@...>
Date: Wednesday, November 7, 2007 - 6:56 am

Originally isspace() and other similar functions in ctype.h ignored  
any character with the high bit set; however this was changed during  
the linux 2.1 days to map Latin-1.  As following Latin-1 will most  
likely break UTF-8 any any *other* encoding that is backwards- 
compatible with 7-bit-ASCII, change ctype.c to ignore such characters  
completely (the way they were before).  Linus seems to think this is  
a good thing, and he's the one that wrote the code in the first place.

Signed-off-by: Kyle Moffett <mrlinuxman@mac.com>

---

On Nov 06, 2007, at 10:53:08, Linus Torvalds wrote:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Smackv10: Smack rules grammar + their stateful parser, Ahmed S. Darwish, (Sat Nov 3, 12:43 pm)
[PATCH] Fix isspace() and other ctype.h functions to ignore ..., Kyle Moffett, (Wed Nov 7, 6:56 am)
Re: [PATCH] Smackv10: Smack rules grammar + their stateful p..., Jakob Oestergaard, (Sat Nov 10, 1:05 pm)