Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWUE4-00064E-Rw for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Sep 2022 02:58:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oWUE2-0007Kb-Fm for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Sep 2022 02:58:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWUE2-0007KS-7Y for pgsql-bugs@lists.postgresql.org; Fri, 09 Sep 2022 02:58:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWUDy-0003FJ-W6 for pgsql-bugs@lists.postgresql.org; Fri, 09 Sep 2022 02:58:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2892wVST005965; Thu, 8 Sep 2022 22:58:31 -0400 From: Tom Lane To: Kyotaro Horiguchi cc: egashira.yusuke@fujitsu.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17611: SJIS conversion rule about duplicated characters differ from Windows In-reply-to: <20220909.114216.2263659117945873025.horikyota.ntt@gmail.com> References: <17611-472d27cf395135b7@postgresql.org> <20220909.114216.2263659117945873025.horikyota.ntt@gmail.com> Comments: In-reply-to Kyotaro Horiguchi message dated "Fri, 09 Sep 2022 11:42:16 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5963.1662692311.1@sss.pgh.pa.us> Date: Thu, 08 Sep 2022 22:58:31 -0400 Message-ID: <5964.1662692311@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Kyotaro Horiguchi writes: > This is not a bug, but the designed behavior. But we could change that > conversion table if a plausible reasoning is raised. Given how long our current behavior has stood, I think it'd have to be a pretty convincing argument. As you say, there'd be some serious compatibility costs to changing that behavior. IIUC, SJIS<->Unicode conversions have always been a squishy thing because of inconsistencies between the various versions of "SJIS". I'm not seeing a good reason we should regard Windows' behavior as authoritative here. I'm not saying I can't be convinced, but "Microsoft does it that way" isn't enough to convince me. regards, tom lane