From 1452c2d8c4a2124e4c97bb51a1e58bcfda620ef0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 26 Mar 2001 23:13:02 +0000 Subject: Fix from Ryo Kawahara to make SWAT correctly write and smb.conf file in utf8. Jeremy. (This used to be commit 42052d6079479452aa43eb37ad3d679d28337779) --- source3/lib/kanji.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source3/lib') 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; -- cgit