bug-gnulib
[Top][All Lists]
Advanced

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

Re: base64.? going into rfc3548bis


From: Simon Josefsson
Subject: Re: base64.? going into rfc3548bis
Date: Fri, 24 Mar 2006 16:49:27 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Eric Blake <address@hidden> writes:

> According to Simon Josefsson on 3/24/2006 7:12 AM:
>> Thank you for your careful review!
>
> No problem; glad I could help.
>
>>  
>> +/* Return true if CH is a character from the Base64 alphabet, and
>> +   false otherwise. */
>>  bool
>>  isbase64 (char ch)
>
> What about '='?  Isn't it part of the alphabet, yet isbase64('=') returns
> false?

No, '=' is padding and not part of the alphabet.  I've improved the
comment:

/* Return true if CH is a character from the Base64 alphabet, and
   false otherwise.  Note that '=' is padding and not considered to be
   part of the alphabet.  */

This is in particular important when non-alphabet characters in the
stream is not ignored; '=' must be considered a non-alphabet character
then.

Thanks,
Simon




reply via email to

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