Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j7K6S-00089N-PE for pgsql-committers@arkaria.postgresql.org; Thu, 27 Feb 2020 14:25:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j7K6R-000143-KJ for pgsql-committers@arkaria.postgresql.org; Thu, 27 Feb 2020 14:25:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j7K6R-00013m-Cu for pgsql-committers@lists.postgresql.org; Thu, 27 Feb 2020 14:25:27 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j7K6O-0004ty-PV for pgsql-committers@lists.postgresql.org; Thu, 27 Feb 2020 14:25:27 +0000 Received: by mail-qt1-x842.google.com with SMTP id r5so2359944qtt.9 for ; Thu, 27 Feb 2020 06:25:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=SvUr7isPno51X3L9bvsJnADbTiiLfJOzvWQKUpKxcfc=; b=ZsV+pmTvXItw018rj0VKXbjhuZ7qttBejycJF8flsVIe0RJ0i4YC7+k53Sw4z401y5 D+x3T0qsZWn89X7pPQmJcc0axoh+jlvZLRXlgbHVl0AfRnpljslr10nXbAR2sjDqmzWO gwuXdTmukt/rpl1S7zcO4lpSTGuZvlMRnkCgwTU3p0gfq76FdD8F0LBoEKc9oqDP5yOQ 9UpHdc83xKibwfWtNfBQVGMychnya8Q/r/oW2NMxJ1fFRYi4TGqyPPItLS/TtQKZWuU2 JlvYVJi95YEo0ZuRtOZPzFXp92A1/O5B8cAiv2TFezCkkOXH6h1pK7H5ji/VXMSB+SL2 ZOng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=SvUr7isPno51X3L9bvsJnADbTiiLfJOzvWQKUpKxcfc=; b=gqlPzlDIOAUifW8bL8q80sRKTKeFyote1sXvjexjXKhprllUyz/Uaqzo0I27mJpz0Q /EdZBUbBqXJv+BHnDK9iDDxnQmnlBE3Vkq9+Zhfp/5YC0ENAKo/Cqira+mi+Qy94E4u/ ACrBd/vt85iVC8MUpacHFTmXMgN6kn8Gsunm9kp6HSg3Ex/x9lFATp/tRdf/iA3a7FfO UFyarLQ6em2o2BifKFX0CbG5v5WMciOJtTTIxyijsk8UobKUcj9XqInbj4Go5XcGyVy+ M+dlfrt/dxNuNktRZ6P+tWbnSpdbOFSzuMEMHaJuhYUG5M7vs7KYf1/8ivOXxAcBNpFn 5UDg== X-Gm-Message-State: APjAAAVymCcC91jf6JOdDSAqrM+O8UaQUdfFcsj85ViSZOZX7hOyxJna 7A9AF55BWkv3PlFhDWM+LhYUeA== X-Google-Smtp-Source: APXvYqx8Riwmme9BDqj2AAHQ2/RfRYqYRuzLMbGt7/P9uwMigcYGI0z1HB2h6IJs5J/PUKAGlIOvAw== X-Received: by 2002:aed:218f:: with SMTP id l15mr5385391qtc.247.1582813522904; Thu, 27 Feb 2020 06:25:22 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id v6sm2172107qtc.76.2020.02.27.06.25.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 06:25:22 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 33BDD30064B; Thu, 27 Feb 2020 11:25:20 -0300 (-03) Date: Thu, 27 Feb 2020 11:25:20 -0300 From: Alvaro Herrera To: Michael Paquier Cc: Robert Haas , pgsql-committers Subject: Re: pgsql: createdb: Fix quoting of --encoding, --lc-ctype and --lc-collate Message-ID: <20200227142520.GA4703@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200227051112.GA280980@paquier.xyz> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Feb-27, Michael Paquier wrote: > Now looking at the code of OpenBSD there could be an > alternative: using a string longer than 256 characters if I read > lib/libc/locale/setlocale.c correctly, but I'd rather not rely on > that. That seems awfully fragile. Belated +1 for not relying on that :-) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services