Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/citrus/citrus_ctype_template.h,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/citrus/citrus_ctype_template.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.8 retrieving revision 1.9 diff -u -p -r1.8 -r1.9 --- src/lib/libc/citrus/citrus_ctype_template.h 2002/03/27 15:01:16 1.8 +++ src/lib/libc/citrus/citrus_ctype_template.h 2002/03/27 17:18:41 1.9 @@ -1,4 +1,4 @@ -/* $NetBSD: citrus_ctype_template.h,v 1.8 2002/03/27 15:01:16 yamt Exp $ */ +/* $NetBSD: citrus_ctype_template.h,v 1.9 2002/03/27 17:18:41 yamt Exp $ */ /*- * Copyright (c)2002 Citrus Project, @@ -282,8 +282,6 @@ _FUNCNAME(wcsrtombs_priv)(_ENCODING_INFO const wchar_t* pwcs0; #if _ENCODING_IS_STATE_DEPENDENT _ENCODING_STATE state; - - state = *psenc; #endif pwcs0 = *pwcs; @@ -292,6 +290,9 @@ _FUNCNAME(wcsrtombs_priv)(_ENCODING_INFO n = 1; while (n > 0) { +#if _ENCODING_IS_STATE_DEPENDENT + state = *psenc; +#endif err = _FUNCNAME(wcrtomb_priv)(ei, buf, sizeof(buf), *pwcs0, psenc, &siz); if (siz == (size_t)-1) {