[3853] in Kerberos-V5-bugs
[krbdev.mit.edu #470] make check fails because high-bit chars
daemon@ATHENA.MIT.EDU (Ken Raeburn via RT)
Fri Jan 31 00:16:46 2003
Date: Fri, 31 Jan 2003 00:16:35 -0500 (EST)
Message-Id: <rt-470-4287.15.6435434445206@krbdev.mit.edu>
In-Reply-To: <rt-470@krbdev.mit.edu>
From: "Ken Raeburn via RT" <rt-comment@krbdev.mit.edu>
To: krb5-prs@mit.edu
Reply-To: rt-comment@krbdev.mit.edu
Errors-To: krb5-bugs-bounces@mit.edu
After decoding the attachments, I found that the output from
tests/asn.1/krb5_encode_test was different from the expected output in
one key way: in the ASCII dumps, characters with the high bit set were
being output instead of using "." as a placeholder for non-printing
characters.
I don't believe I have ever seen this problem, but I think it could
arise again. The behavior of isprint is influenced by the current
locale, so some of these high-bit characters could become printing
characters. Probably the right thing to do is add a test for values
under 127 (since it's an unsigned char value). Or we could use
something like 'setlocale(LC_CTYPE,"C")' to force "normal"
interpretation.
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
http://mailman.mit.edu/mailman/listinfo/krb5-bugs