[Ace-users] [ace-bugs] ACE_Base64: wrong result of base 64 encoding

alick_nie alick_nie at 163.com
Thu Dec 13 22:17:59 CST 2007


 ACE VERSION: 5.6

HOST MACHINE and OPERATING SYSTEM:
If on Windows based OS's, which version of WINSOCK do you
use?: 

TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):

THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
specific file, simply state which one]:
#define ACE_HAS_STANDARD_CPP_LIBRARY 1
#define ACE_AS_STATIC_LIBS
#define ACE_USE_WCHAR
#define ACE_HAS_WCHAR
#include "ace/config-win32.h"


THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
use a link to a platform-specific file, simply state which one
(unless this isn't used in this case, e.g., with Microsoft Visual
C++)]:
include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU

CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
(used by MPC when you generate your own makefiles):

AREA/CLASS/EXAMPLE AFFECTED:
[What example failed? What module failed to compile?]

DOES THE PROBLEM AFFECT:
COMPILATION?
LINKING?
On Unix systems, did you run make realclean first?
EXECUTION?
OTHER (please specify)?
[Please indicate whether ACE, your application, or both are affected.]
EXECUTION

SYNOPSIS:
[Brief description of the problem]
I have encounter a problem when using ACE_Base64 encode method.

DESCRIPTION:
[Detailed description of problem. Don't just say "<blah>
doesn't work, here's a fix," explain what your program does
to get to the <blah> state. ]
For exameple, when "abcdfgi" is encoded under base 64 algorithm, the result should be "YWJjZGZnaQ==".
But the result, which ACE_base64 returns, add a "\n" to the end of "YWJjZGZnaQ==".

REPEAT BY:
[What you did to get the error; include test program or session
transcript if at all possible. ]

SAMPLE FIX/WORKAROUND:
[If available ]


 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20071214/5572efac/attachment.html 


More information about the Ace-users mailing list