Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2003 14:21:35 +0900
From:      Hye-Shik Chang <perky@i18n.org>
To:        Tim Robbins <tjr@freebsd.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/locale big5.c euc.c mskanji.c utf8.c
Message-ID:  <20031111052135.GA29527@i18n.org>
In-Reply-To: <20031111051150.GB59673@wombat.robbins.dropbear.id.au>
References:  <200311021009.hA2A9XTU063850@repoman.freebsd.org> <20031111042254.GA28372@i18n.org> <20031111051150.GB59673@wombat.robbins.dropbear.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 11, 2003 at 04:11:50PM +1100, Tim Robbins wrote:
> On Tue, Nov 11, 2003 at 01:22:54PM +0900, Hye-Shik Chang wrote:
[snip]
> > 
> > JFYI, I can't input characters in libreadline and GTK+2 on UTF-8 locales
> > (ports/misc/utf8locale) after this change. (and they work again when rollback
> > it to utf8.c rev 1.2)
> > 
> > I'm tracking it down but I don't know what's the problem exactly yet.
> 
> Ugh, sorry. Can you try this patch and let me know whether it fixes it?
> 
> --- utf8.c.old	Tue Nov 11 16:05:05 2003
> +++ utf8.c	Tue Nov 11 16:05:19 2003
> @@ -143,7 +143,7 @@ _UTF8_mbrtowc(wchar_t * __restrict pwc, 
>  	}
>  	if (pwc != NULL)
>  		*pwc = wch;
> -	return (wch == L'\0' ? 0 : i);
> +	return (wch == L'\0' ? 0 : len);
>  }
>  
>  size_t
> 

Okay. It works again! Thank you! :)


Regards,
  Hye-Shik =)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031111052135.GA29527>