[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Erroneous assumption in isblank.c

From: John Darrington
Subject: Erroneous assumption in isblank.c
Date: Tue, 5 Oct 2010 06:39:16 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

In lib/isblank.c I see the following:

 /* The "blank" characters are '\t', ' ',
     U+1680, U+180E, U+2000..U+2006, U+2008..U+200A, U+205F, U+3000, and none
     except the first two is present in a common 8-bit encoding.  Therefore
     the substitute for other platforms is not more complicated than this.  */
  return (c == ' ' || c == '\t');

This is incorrect.  In iso-8859-1 (a very common 8-bit encoding), U+00A0 is the
non-breaking-space character.  

So unfortunately, isblank fails to correctly detect such a character.


PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]