From owner-freebsd-i18n Sun Apr 14 3:59:11 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from a96180.upc-a.chello.nl (a96180.upc-a.chello.nl [62.163.96.180]) by hub.freebsd.org (Postfix) with ESMTP id CD9E537B41A for ; Sun, 14 Apr 2002 03:59:07 -0700 (PDT) Received: by a96180.upc-a.chello.nl (Postfix, from userid 1001) id 5BB20216D; Sun, 14 Apr 2002 12:59:06 +0200 (CEST) Date: Sun, 14 Apr 2002 12:59:06 +0200 From: Jeroen Ruigrok/asmodai To: Yong-Jhen Hong Cc: i18n@FreeBSD.ORG, NIIMI Satoshi Subject: Re: MB_CHAR_MAX in EUC encoding Message-ID: <20020414105906.GR24261@daemon.ninth-circle.org> References: <20020327173214.GA668@winax.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020327173214.GA668@winax.home> User-Agent: Mutt/1.3.28i Organisation: Ninth Circle Enterprises Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -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