Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vq45q-003owd-0Y for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Feb 2026 06:52:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vq45p-002j8d-0S for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Feb 2026 06:52:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vq45o-002j8V-2d for pgsql-hackers@lists.postgresql.org; Wed, 11 Feb 2026 06:52:57 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vq45j-000000005Oh-3SJY for pgsql-hackers@lists.postgresql.org; Wed, 11 Feb 2026 06:52:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Transfer-Encoding:Content-Type: Mime-Version:References:In-Reply-To:From:Subject:Cc:To:Message-Id:Date:Sender :Reply-To:Content-ID:Content-Description; bh=sydzApwYnCEVmC4T1NAfwlJ4QLXVNiqLSBjJS5Rp1hg=; b=iL68p9hHZ7yi65g4e0U4KrIf2Y 00EG3aQFWojX1vEth/bKTu96bw/q0goTggyRKZouNeOmjBY5gSP8fB7HFPYQTl0UMm33WUgVzRtbA JuCNPBaDeQ7j56Rbx0wZL6FJIz3kcbaT6dR/dYm4OC47M11yxptsJUjrBF9JQbF7YVif7Kp2X+e3Z +Qihnk0JNHyS44GrG6z8bMOBDdxn6ORpHjfUPxBzTaBe78m5HqzCYZkgtoPIiUH1fbcmuB63NKaF2 RhqpxXdG63xrxsezdDCWSxJVR3l0o6bJ7sjq//DDP8slSHIbeFI3JfIo9PPIoxCU1zGNCSTTggJa/ jyDyOMMw==; Received: from [2409:11:4120:300:ca0b:56e6:d6a:5858] (helo=localhost) by meldrar.postgresql.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vq45g-000F8M-0v; Wed, 11 Feb 2026 06:52:51 +0000 Date: Wed, 11 Feb 2026 15:52:36 +0900 (JST) Message-Id: <20260211.155236.1457492817322202220.ishii@postgresql.org> To: thomas.munro@gmail.com Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Do we still need MULE_INTERNAL? From: Tatsuo Ishii In-Reply-To: References: X-Mailer: Mew version 6.8 on Emacs 29.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2409:11:4120:300:ca0b:56e6:d6a:5858 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Thomas, Thank you for the report. I find it is quite useful, especially the Emacs 23 internal (new to me). I agree that MULE_INTERNAL has fulfilled its historic role. Small comments. > kanji kana > MULE_INTERNAL-wrapped-JISX0208/0212: 3 3 > MULE_INTERNAL-wrapped-JISX0201K: N/A 2 > UTF8: 3 3 > EUC_JP: 2 2 > EUC_JIS_2004: 2 2 > > Since there are two encodings for kana characters and MULE's > superpower is to switch, I guess it depends how you chose to encode it > and what your ratio of kana to kanji is. The reason for 2 encodings in MULE for "kana" exist is, it's a nature of the character sets mule supports. In Japanese there are 2 types of "kana", one is "hiragana" and the other is "katakana". JIS X0208/0212 includes both types of "kana", while JIS X0201 includes only "katakana". So why "katakana" appears on those two encodings? Katakana in JIS X0201 is often rendered on screen in half width comparing with JIS X 0208 and 0212. Some users find this beneficial. > UTF8: 3 3 I thought some of JIS 2004 kanji are mapped to 4-byte UTF8 character. > Can any Japanese (or other) experts offer any clues? Concrete questions: I am not an expert but let me try to answer your questions. > * Is anyone actually using MULE_INTERNAL today? > * If so, what prevented migration? As far as I know, MULE_INTERNAL is not used in production PostgreSQL databases today. Of course this does not nessary mean nobody is using MULE_INTERNAL. My perspective is limited. > * Was it ever actually used outside Japan? I don't know. > * Is the lack of interest in the new (22 year old) JIS standard in > MULE_INTERNAL meaningful? Maybe because at the time when JIS 2004 was out, quite few users were trying to adopt it. Best regards, -- Tatsuo Ishii SRA OSS K.K. English: http://www.sraoss.co.jp/index_en/ Japanese:http://www.sraoss.co.jp