Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiMoC-0006ZB-DH for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Mar 2016 13:57:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aiMoB-0004Ji-NT for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Mar 2016 13:57:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aiMoA-0004Ik-59 for pgsql-hackers@postgresql.org; Tue, 22 Mar 2016 13:57:18 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1aiMo2-00035K-WC for pgsql-hackers@postgresql.org; Tue, 22 Mar 2016 13:57:16 +0000 Received: by mail-wm0-x229.google.com with SMTP id r129so94612269wmr.1 for ; Tue, 22 Mar 2016 06:57:10 -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=b8K90l2bdtHoX2q8sDWyI1iuVbsFuZvnZfWiLw+e+FM=; b=oqh2MTWkPLeHvpxycADgltNCeEu8+tkdU2QZku77PxI1+lN7jghEJYe53rrHwykSTw zb0CjaYCKmzvIp1ADPZBlCH8QBxe6+qsJO46RyyaAqNC7AZLxjhEqEZOp4SUN7HTKTS9 qMkzQGQacIUv7dGKzyyhdaFav6+ZDK2wJLEnLdJgPFp4jQ6KuAcigdVBHCfJIfRGb2tK 81jjDY6Kenl79+fGT7y9DhHkfCYa61vf8IdK1H1a5/tZ8ompNdH7BmetVuEPrOyebGlf JtZQpn8Yfr0xcnCV0MUSGwwbYIJH7e5FVfdHGDugs+5sqf0vTivdfFEWjOxB/bTnUzpu 3aLw== 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=b8K90l2bdtHoX2q8sDWyI1iuVbsFuZvnZfWiLw+e+FM=; b=F7FZmbg8rvb9pM4Xl8NdWeMDmLryHvQ8+awErOgdYRNb3Q6s0Ftc6l5p7z8P63quhU UE5yzRhumnUbDP6yT7mzVOJnaQYelcKeJwqgITOJIhsxRSJTLPNYEJqcik7sYnE4K69p 6L+wQZ5pZ7q3sXwSHd8iCY+RZ8jHEgvNjh0m0aTUF8bMMQK4ksTgj498s8qSF6vGOSNM IxketSMkrWaoM2HT4mVvowMHwELyCRnGX8fFQdnz3QRR+mXTaZOL3lJ/si++6abW6Jk3 toQ9z8rb3ALxoDLj/wOG0NYfOLy3vWQmxv4vCXjoL8sProHEyS/fu3ARWEkEvfiBCd6+ KZsQ== X-Gm-Message-State: AD7BkJImlYW922ZACc35aS1/4nZ0tRkDbWwj7gzyKUHzZo+29FJeRFQm+y2BvPt0nTsERy8bQ7MISfam5uzY/e8enQxf0eR5c0gkSnmvJNACYYD7TuIHd41/rPPDsmkQnJOMgs1dHxAOvh0Z5r9Fkw4Re95Mzb036VyPaz8SqSksF9M1lec6ztt805P43EOmcQ== X-Received: by 10.28.30.215 with SMTP id e206mr19126070wme.25.1458655029295; Tue, 22 Mar 2016 06:57:09 -0700 (PDT) Received: from [192.168.0.103] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id v2sm17570109wmd.24.2016.03.22.06.57.07 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2016 06:57:07 -0700 (PDT) Subject: Re: VS 2015 support in src/tools/msvc To: Michael Paquier References: <56DA6394.9040404@2ndquadrant.com> <15559.1457156815@sss.pgh.pa.us> <56DAEE74.3010604@dunslane.net> <56DB47A5.7040502@dunslane.net> <20160309043137.GA933917@tornado.leadboat.com> <56E02ED9.1010308@2ndquadrant.com> Cc: Noah Misch , Andrew Dunstan , Tom Lane , Magnus Hagander , PostgreSQL mailing lists From: Petr Jelinek Message-ID: <56F14F32.60108@2ndquadrant.com> Date: Tue, 22 Mar 2016 14:57:06 +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 22/03/16 14:40, Michael Paquier wrote: > On Wed, Mar 9, 2016 at 11:10 PM, Petr Jelinek wrote: >> Something like attached is simplest way this would work correctly (note that >> I didn't really test it and it's missing comments). Note that we are falling >> back to the old parsing in case the GetLocaleInfoEx didn't work, that's >> important because GetLocaleInfoEx does not support the >> _. format but supports all the rest of them. >> The problem with this is the binaries would need to be compiled with target >> of vista/windows server 2008+. That would be of course only the case with >> builds made with VS2015, so I am not sure if we care all that much >> (especially given the fact that older windows are not supported by MS >> anyway). > > Ah, OK. Of course. > >> I don't currently know of any way of doing this in VS2015 that would work >> with older versions of windows with the exception of having our own >> definition of the locale_t struct so that the VS2013 code would still >> work... > > There is no actual way to be sure if this is an intentional change or > not, if we see it back in the next version of VS, why not... I would > like to think like you that this is actually a merge mistake from > Redmond-side, but I think we had better be careful here, this could > lead to undetected errors in the future. > Sure, I am looking at it from the perspective that they didn't even deprecate the function and changes to the struct it returns would break binary compatibility for existing apps. -- 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