From: franklahm <fra...@us...> - 2009-10-30 07:00:14
|
Update of /cvsroot/netatalk/netatalk/libatalk/unicode In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv32450 Modified Files: charcnv.c Log Message: Untabify and reindent Index: charcnv.c =================================================================== RCS file: /cvsroot/netatalk/netatalk/libatalk/unicode/charcnv.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** charcnv.c 29 Oct 2009 13:38:16 -0000 1.10 --- charcnv.c 30 Oct 2009 07:00:03 -0000 1.11 *************** *** 1,23 **** ! /* ! Unix SMB/CIFS implementation. ! Character set conversion Extensions ! Copyright (C) Igor Vergeichik <iv...@ma...> 2001 ! Copyright (C) Andrew Tridgell 2001 ! Copyright (C) Simo Sorce 2001 ! Copyright (C) Martin Pool 2003 ! ! This program is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by [...2050 lines suppressed...] ! /* Do case conversions */ ! if (CHECK_FLAGS(flags, CONV_TOUPPER)) { ! strupper_w(u); ! } ! if (CHECK_FLAGS(flags, CONV_TOLOWER)) { ! strlower_w(u); ! } ! ! /* Convert UCS2 to to_set */ ! if ((size_t)(-1) == ( o_len = push_charset_flags( to_set, cap_charset, (char *)u, i_len, dest, dest_len, flags )) ) { ! LOG(log_error, logtype_default, ! "Conversion failed (CH_UCS2 to %s):%s", charset_name(to_set), strerror(errno)); ! return (size_t) -1; ! } ! /* null terminate */ ! dest[o_len] = 0; ! dest[o_len +1] = 0; ! ! return o_len; } |