[reSIProcate] Bug in Data::charEncoded()

Ulrich Findeisen Ulrich.Findeisen at gmx.net
Thu Feb 24 11:52:28 CST 2005


Hi,

I found that the Data::charEncoded() method in os/Data.cxx is encoding the
't' character as '%74':

Data testData("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
DebugLog(<< testData.charEncoded());

is logged as

"abcdefghijklmnopqrs%74uvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

The reason is that /t instead of \t is used:

      if ( !isprint(c) ||
           // rfc 3261 reserved + mark + space + tab
           strchr(" \";/?:@&=+%$,/t-_.!~*'()", c))

Regards,
Ulrich




-- 
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl



More information about the resiprocate-devel mailing list