Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahsZ9-0003gB-Of for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Mar 2016 05:39:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ahsZ9-0006hw-21 for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Mar 2016 05:39:47 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ahsXn-0005Ep-ML for pgsql-hackers@postgresql.org; Mon, 21 Mar 2016 05:38:23 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ahsXj-00082h-Fe for pgsql-hackers@postgresql.org; Mon, 21 Mar 2016 05:38:22 +0000 Received: by mail-wm0-x236.google.com with SMTP id l68so108081409wml.1 for ; Sun, 20 Mar 2016 22:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=t2LwlHx+t3M9s1wbgl1+zgLfcqwKtSsmOzgajOU3fl8=; b=SO3sGzCkQhJSdL5DMr8lVOSIqFrr21HJG4ApDQVwTNQ22k+RLxSk94nftVAZHH6/Pc P6xh9qN3DDgSdGL2dMU5tGCqQhJDuWXrWrwORrK5o1YyryHPodsAyigi4bmaUqyOJu8K R+mnI0ef7/kppwt6FYTO7Ab9XNSDTpliwmFpdjV0bHWB0ZULOitGN5xC0InpMgyOv3fO 4mbfSKarhGoTdDAl0Ch3qxLngCpWsCWxAmqxZ4qjQPbgkePcvWMh3ZPZiZzYKuDP0p8B xW8YmsWD8hYMauPYJxg+raa04CBMUXaZUeOuZrCAphE4RisfwIBmc/U99i9yu4h0v4ta afqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=t2LwlHx+t3M9s1wbgl1+zgLfcqwKtSsmOzgajOU3fl8=; b=Vfag+wz4zKSTk8LwvSYlpjt7yCXUBWsldUZuLgCsBwYNSqLiGwfki7TM2gMKBQp86s ZDy7iXB+6r4JQ/SJtzneiF7fELEONvF6Ck71/yQWtzPFD1NI0NQY1VsTSDsgDlo27rZj ajy+Lfzthg1gQP/0I86tvbwZhQWmGa68mLKP3BQPj546TPXHGPvyby8bDYZlX44DebXr F8s/kUUjF5raRJVP2zmOTWwi/yzZYT4sjXBNBdW22NG+YjlKCM/CqhLd+tAGyAd8mrxe 256LDA7G6uCQbSlCDsJc/RQyrMOt0pETecRVKeAKf/0sgvlhMkIYpJSmDJhKSROFCxLK t+gw== X-Gm-Message-State: AD7BkJIkEUW01dH9xAzYTPH3BGBucXYINnbZ41Uqi8svpUV7BRfQtoDYgtFb2dK6KOdwrM01Re1lrb/1f13xnnI6dGitN1RTRcLmVrbN34Z/CktgarVMnHGkghKQ0CEmAH14Q4RdBst0FH2pxCFPjqwvj+bkWy/z5LjnTO2oC50EHYNj0goPtjF8AESqv8Tn/A== X-Received: by 10.194.92.107 with SMTP id cl11mr31868436wjb.21.1458538697917; Sun, 20 Mar 2016 22:38:17 -0700 (PDT) Received: from [192.168.0.103] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id o128sm10647331wmb.19.2016.03.20.22.38.16 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Mar 2016 22:38:16 -0700 (PDT) Subject: Re: VS 2015 support in src/tools/msvc To: Michael Paquier , Andrew Dunstan References: <56D8B8E3.5070708@2ndquadrant.com> <56DA6394.9040404@2ndquadrant.com> <15559.1457156815@sss.pgh.pa.us> <56DAEE74.3010604@dunslane.net> <56DB47A5.7040502@dunslane.net> <56DEEF92.4020507@dunslane.net> <9775.1457451803@sss.pgh.pa.us> <56DEF8B6.8070205@dunslane.net> <56EDDB60.4060506@dunslane.net> Cc: Tom Lane , Magnus Hagander , PostgreSQL mailing lists From: Petr Jelinek Message-ID: <56EF88C7.3090308@2ndquadrant.com> Date: Mon, 21 Mar 2016 06:38:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 20/03/16 05:02, Michael Paquier wrote: > On Sun, Mar 20, 2016 at 8:06 AM, Andrew Dunstan wrote: > >> Still to do: the non-perl pieces. > > The patch to address locales is the sensitive part. The patch from > Petr is taking the correct approach though I think that we had better > simplify it a bit and if possible we had better not rely on the else > block it introduces. > That would be ideal, not particularly sure that both are possible at the same time. We can definitely remove the else block but it involves enumerating system locales which makes the patch orders of magnitude bigger and uglier. Do you have any better approaches in you mind? As a side note, I have to say the current locale API in Windows is one huge mess and if it was on me I'd just redefine the locale_t struct correctly as that is simplest solution and the APIs involved are not deprecated or anything, it's just that the public headers are botched in current version and apparently nobody important is using them to force MS to fix them. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers