svn rev #20047: branches/krb5-1-6/ src/lib/krb5/ccache/

tlyu@MIT.EDU tlyu at MIT.EDU
Mon Oct 1 19:13:01 EDT 2007


Commit By: tlyu
Log Message: 
ticket: 5766
version_fixed: 1.6.3

pull up r19970 from trunk

 r19970 at cathode-dark-space:  jaltman | 2007-09-24 14:49:58 -0400
 ticket: 5766
 
 Remove the broken optimization from UnicodeToANSI() that attempted
 in a stupid way to avoid to WideCharToMultiByte() call by testing 
 to see if the second byte (not wchar) was NUL.  This test works 
 for Latin1 but not for anything more interesting.  Always call 
 WideCharToMultiByte().  
 
 I commented out the use of WC_NO_BEST_FIT_CHARS in order to 
 provide compatibility with Windows.  Windows converts the user
 name without that option.  
 
 With the current code a principal name consisting of a single
 component equivalent to the Greek character Sigma and a realm 
 name will be converted to S at REALM exactly as the "WhoAmI" 
 command does.  If WC_NO_BEST_FIT_CHARS was specified, this 
 string would be converted to "?@REALM".
 
 




Changed Files:
_U  branches/krb5-1-6/
U   branches/krb5-1-6/src/lib/krb5/ccache/cc_mslsa.c



More information about the cvs-krb5 mailing list