Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Apr 2002 12:59:06 +0200
From:      Jeroen Ruigrok/asmodai <asmodai@wxs.nl>
To:        Yong-Jhen Hong <winard@ms11.url.com.tw>
Cc:        i18n@FreeBSD.ORG, NIIMI Satoshi <sa2c@sa2c.net>
Subject:   Re: MB_CHAR_MAX in EUC encoding
Message-ID:  <20020414105906.GR24261@daemon.ninth-circle.org>
In-Reply-To: <20020327173214.GA668@winax.home>
References:  <20020327173214.GA668@winax.home>

next in thread | previous in thread | raw e-mail | index | archive | help
-On [20020327 20:15], Yong-Jhen Hong (winard@ms11.url.com.tw) wrote:
>I have tried to make a new locale setting (specifically, a LC_CTYPE
>file) which is of EUC encoding, but it didn't work. After dumping codes
>of some multibyte strings and their corresponding widechar strings, I
>found only one of four codesets breaks - and it's byte length is 4,
>which is lesser than the hard-coded length in euc.c (__mb_cur_max = 3).
>
>This confuses me, does EUC really limit byte length of its codeset to 3?

As Satoshi-san explained in private email, EUC does not know any arbitrary
byte length limits.

>I have made a patch to let this locale work (listed below), but if it
>breaks something please let me know. Thank you!

I think your patch should be correct and I committed it.  I ask people to
test it though, since it might expose (other) problems.

-- 
Jeroen Ruigrok van der Werven / asmodai / Kita no Mono
asmodai@[wxs.nl|xmach.org], finger asmodai@ninth-circle.org
http://www.softweyr.com/asmodai/ | http://www.[tendra|xmach].org/
The spirit indeed is willing, but the flesh is weak...

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-i18n" in the body of the message




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