From 9954432e309c8fddaec2fe53e601702a5c981624 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 7 Jan 2012 10:52:53 -0500 Subject: More char16_t and char32_t support It works now for UTF-8 locales --- wcsmbs/wcrtomb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wcsmbs/wcrtomb.c') diff --git a/wcsmbs/wcrtomb.c b/wcsmbs/wcrtomb.c index 547b05a..946fdaf 100644 --- a/wcsmbs/wcrtomb.c +++ b/wcsmbs/wcrtomb.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1996-1998,2000,2002,2005,2011 Free Software Foundation, Inc. +/* Copyright (C) 1996-1998,2000,2002,2005,2011,2012 + Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -38,7 +39,7 @@ static mbstate_t state; size_t __wcrtomb (char *s, wchar_t wc, mbstate_t *ps) { - char buf[MB_CUR_MAX]; + char buf[MB_LEN_MAX]; struct __gconv_step_data data; int status; size_t result; -- cgit v1.1