From owner-freebsd-i18n Sat Apr 13 5:43:40 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 B903D37B41B for ; Sat, 13 Apr 2002 05:43:30 -0700 (PDT) Received: by a96180.upc-a.chello.nl (Postfix, from userid 1001) id 7B3552170; Sat, 13 Apr 2002 14:43:28 +0200 (CEST) Date: Sat, 13 Apr 2002 14:43:28 +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: <20020413124327.GG24261@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 Lie hor Yong-Jhen, -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? >I have made a patch to let this locale work (listed below), but if it >breaks something please let me know. Thank you! I cc:'d Satoshi-san on this email since I recently fixed an EUC encoding problem, which he submitted a patch for. Satoshi, I haven't had a chance to read up on the specifications yet, so I appreciate it if you could comment on this. Arigato, -- 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/ I lift my gaze to empty skies above... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message