diff options
author | Jeremy Allison <jra@samba.org> | 2001-03-26 23:13:02 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-03-26 23:13:02 +0000 |
commit | 1452c2d8c4a2124e4c97bb51a1e58bcfda620ef0 (patch) | |
tree | c988c7a9424838a16e0d49bf37c8eb37922921c0 /source3/lib/kanji.c | |
parent | 4e35283a8b2c4b816b7aec821c719378a1ef10a6 (diff) | |
download | samba-1452c2d8c4a2124e4c97bb51a1e58bcfda620ef0.tar.gz samba-1452c2d8c4a2124e4c97bb51a1e58bcfda620ef0.tar.bz2 samba-1452c2d8c4a2124e4c97bb51a1e58bcfda620ef0.zip |
Fix from Ryo Kawahara <rkawa@lbe.co.jp> to make SWAT correctly write and smb.conf
file in utf8.
Jeremy.
(This used to be commit 42052d6079479452aa43eb37ad3d679d28337779)
Diffstat (limited to 'source3/lib/kanji.c')
-rw-r--r-- | source3/lib/kanji.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/lib/kanji.c b/source3/lib/kanji.c index 294b6a623a..39e9933842 100644 --- a/source3/lib/kanji.c +++ b/source3/lib/kanji.c @@ -1673,3 +1673,19 @@ void initialize_multibyte_vectors( int client_codepage) break; } } +/* ******************************************************* + function(s) for "dynamic" encoding of SWAT output. + in this version, only dos_to_dos, dos_to_unix, unix_to_dos + are used for bug fix. conversion to web encoding + (to catalog file encoding) is not needed because + they are using same character codes. + **************************************************** */ +static char *no_conversion(char *str, BOOL bOverwrite) +{ + static pstring temp; + if(bOverwrite) + return str; + pstrcpy(temp, str); + return temp; +} +char *(*_dos_to_dos)(char *, BOOL) = no_conversion; |