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 1ppaL6-0003ex-CX for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Apr 2023 19:53:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ppaL5-00059A-Ah for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Apr 2023 19:53:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ppaL5-00058z-2F for pgsql-bugs@lists.postgresql.org; Thu, 20 Apr 2023 19:53:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppaL2-000vu2-JJ for pgsql-bugs@lists.postgresql.org; Thu, 20 Apr 2023 19:53:05 +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 33KJr1DO3170491; Thu, 20 Apr 2023 15:53:01 -0400 From: Tom Lane To: Jeff Davis cc: Richard Guo , PostgreSQL mailing lists Subject: Re: Assert failure with ICU support In-reply-to: References: <3017542.1681937148@sss.pgh.pa.us> Comments: In-reply-to Jeff Davis message dated "Thu, 20 Apr 2023 12:47:21 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3170489.1682020381.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Thu, 20 Apr 2023 15:53:01 -0400 Message-ID: <3170490.1682020381@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jeff Davis writes: > On Wed, 2023-04-19 at 16:45 -0400, Tom Lane wrote: >> +       if (c >= 0x100 || !iscalnum(c)) > I'm curious why you say >= 0x100 rather than >= 0x80? Right, should be 0x80, my thinko. > What's the purpose of the error? Is it to catch mistakes, or is it to > reserve room for adding new escape sequences in the future? As I read it, it's meant to leave room for defining more escapes. If we allowed \x for any non-currently-defined "x" to just be "x", then there would be a compatibility problem if we wanted to make it mean something else. But I think it's sufficient to reserve the ASCII letters for that purpose. regards, tom lane