pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Petr Jelinek <petr@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Noah Misch <noah@leadboat.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: VS 2015 support in src/tools/msvc
Date: Tue, 22 Mar 2016 14:57:06 +0100
Message-ID: <56F14F32.60108@2ndquadrant.com> (raw)
In-Reply-To: <CAB7nPqRxVTmHdh2Hg3BypH+-fK3xXA7t4MB2WRu7J=6oW9JwFA@mail.gmail.com>
References: <CAB7nPqRL+kuZ8dq6P3WXv-b0-0LAwTxecnaLnvBn4ah7PSbWsQ@mail.gmail.com>
	<CAB7nPqT8mfN6GoRt4WcNh8WiK==sSh3VkVonRFMzOi6oXefTQw@mail.gmail.com>
	<56DA6394.9040404@2ndquadrant.com>
	<CAB7nPqQfoNWGnXjTCf8ZuRtcz0D0fHpE43haoy3CHYgJVf1oDg@mail.gmail.com>
	<15559.1457156815@sss.pgh.pa.us>
	<56DAEE74.3010604@dunslane.net>
	<CAB7nPqSuzGoZPvCUhbDFTkmsD9z6oLAaHeB-yc7_Qb4sh_f-fg@mail.gmail.com>
	<56DB47A5.7040502@dunslane.net>
	<CAB7nPqSOL9vLmaecT+SDhkFTOje8erdnvC-KT+dH9_bBQsV5zg@mail.gmail.com>
	<CAB7nPqRSsrn5etFDEJ+VrWcoxFee8WRBteSgwobKocKQJUFC_A@mail.gmail.com>
	<20160309043137.GA933917@tornado.leadboat.com>
	<56E02ED9.1010308@2ndquadrant.com>
	<CAB7nPqRxVTmHdh2Hg3BypH+-fK3xXA7t4MB2WRu7J=6oW9JwFA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 22/03/16 14:40, Michael Paquier wrote:
> On Wed, Mar 9, 2016 at 11:10 PM, Petr Jelinek <petr@2ndquadrant.com> 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
>> <Language>_<Country>.<CodePage> 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



view thread (134+ messages)  latest in thread

Message-ID: <56F14F32.60108@2ndquadrant.com>
Permalink:  ../56F14F32.60108@2ndquadrant.com/
Also on:    postgresql.org/message-id/56F14F32.60108@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: petr@2ndquadrant.com, michael.paquier@gmail.com, noah@leadboat.com, andrew@dunslane.net, tgl@sss.pgh.pa.us, magnus@hagander.net
  Subject: Re: VS 2015 support in src/tools/msvc
  In-Reply-To: <56F14F32.60108@2ndquadrant.com>
  References: <CAB7nPqRL+kuZ8dq6P3WXv-b0-0LAwTxecnaLnvBn4ah7PSbWsQ@mail.gmail.com> <CAB7nPqT8mfN6GoRt4WcNh8WiK==sSh3VkVonRFMzOi6oXefTQw@mail.gmail.com> <56DA6394.9040404@2ndquadrant.com> <CAB7nPqQfoNWGnXjTCf8ZuRtcz0D0fHpE43haoy3CHYgJVf1oDg@mail.gmail.com> <15559.1457156815@sss.pgh.pa.us> <56DAEE74.3010604@dunslane.net> <CAB7nPqSuzGoZPvCUhbDFTkmsD9z6oLAaHeB-yc7_Qb4sh_f-fg@mail.gmail.com> <56DB47A5.7040502@dunslane.net> <CAB7nPqSOL9vLmaecT+SDhkFTOje8erdnvC-KT+dH9_bBQsV5zg@mail.gmail.com> <CAB7nPqRSsrn5etFDEJ+VrWcoxFee8WRBteSgwobKocKQJUFC_A@mail.gmail.com> <20160309043137.GA933917@tornado.leadboat.com> <56E02ED9.1010308@2ndquadrant.com> <CAB7nPqRxVTmHdh2Hg3BypH+-fK3xXA7t4MB2WRu7J=6oW9JwFA@mail.gmail.com> <56F14F32.60108@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox