Lists: | pgsql-hackers |
---|
From: | Greg Smith <greg(at)2ndquadrant(dot)com> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Foreign Visual Studio builds |
Date: | 2010-10-14 17:37:09 |
Message-ID: | 4CB73FC5.7010006@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
We got an interesting documentation document left by Christian Freund
recently, in regards to
http://www.postgresql.org/docs/9.0/interactive/install-windows-full.html
; it says:
Regarding 16.1.3 - "perl mkvcbuild.pl"
In case you use a German version of VC change line 69 in "Solution.pm" to:
if ($line !~ /^Microsoft\s*\(R\) Visual C\+\+-Projekt-Generator -
\D+(\d+)\.00\.\d+/)
I'm going to approve the doc comment so that it might help someone else
that runs into this in the short-term, but I thought it was was worth
sharing as something that might be improved in the build code instead.
That regex seems a bit too specific.
--
Greg Smith, 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services and Support www.2ndQuadrant.us
From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Greg Smith <greg(at)2ndquadrant(dot)com>, Hiroshi Saito <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Foreign Visual Studio builds |
Date: | 2010-10-15 15:13:45 |
Message-ID: | AANLkTikdW+tjwgpkPKte3-WeNHPhN_nd1WLjPVi8x7d7@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Thu, Oct 14, 2010 at 19:37, Greg Smith <greg(at)2ndquadrant(dot)com> wrote:
> We got an interesting documentation document left by Christian Freund
> recently, in regards to
> http://www.postgresql.org/docs/9.0/interactive/install-windows-full.html ;
> it says:
>
> Regarding 16.1.3 - "perl mkvcbuild.pl"
>
> In case you use a German version of VC change line 69 in "Solution.pm" to:
>
> if ($line !~ /^Microsoft\s*\(R\) Visual C\+\+-Projekt-Generator -
> \D+(\d+)\.00\.\d+/)
>
>
> I'm going to approve the doc comment so that it might help someone else that
> runs into this in the short-term, but I thought it was was worth sharing as
> something that might be improved in the build code instead. That regex
> seems a bit too specific.
yeah. I wonder if we can't just get away with:
if ($line !~ /^Microsoft\s*\(R\) Visual C\+\+ [^-]+ - \D+(\d+)\.00\.\d+/)
That's still quite specific, but should work as long as they don't
localize the product name itself. I doubt they do that even in
Japanese/Chinese - Hiroshi (or someone else with a Japanese install),
can you confirm what the output from "vcbuild /?" is on a Japanese
machine?
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From: | "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> |
---|---|
To: | "Magnus Hagander" <magnus(at)hagander(dot)net>, "Greg Smith" <greg(at)2ndquadrant(dot)com> |
Cc: | "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Foreign Visual Studio builds |
Date: | 2010-10-15 15:48:53 |
Message-ID: | 60C611FE4781474F9F93233065049C38@acer08f817a9b5 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Hi.
Ahh, as for Japanese, it becomes the same.
C:\MinGW\home\HIROSHI>vcbuild /?
Microsoft(R) Visual C++ Project Builder - コマンド ライン バージョン 9.00.21022
Copyright (C) Microsoft Corporation. All rights reserved.
http://winpg.jp/~saito/pg_work/VisualStudio/vcbuild_help_SJIS.txt
Regards,
Hiroshi Saito
----- Original Message -----
From: "Magnus Hagander" <magnus(at)hagander(dot)net>
On Thu, Oct 14, 2010 at 19:37, Greg Smith <greg(at)2ndquadrant(dot)com> wrote:
> We got an interesting documentation document left by Christian Freund
> recently, in regards to
> http://www.postgresql.org/docs/9.0/interactive/install-windows-full.html ;
> it says:
>
> Regarding 16.1.3 - "perl mkvcbuild.pl"
>
> In case you use a German version of VC change line 69 in "Solution.pm" to:
>
> if ($line !~ /^Microsoft\s*\(R\) Visual C\+\+-Projekt-Generator -
> \D+(\d+)\.00\.\d+/)
>
>
> I'm going to approve the doc comment so that it might help someone else that
> runs into this in the short-term, but I thought it was was worth sharing as
> something that might be improved in the build code instead. That regex
> seems a bit too specific.
yeah. I wonder if we can't just get away with:
if ($line !~ /^Microsoft\s*\(R\) Visual C\+\+ [^-]+ - \D+(\d+)\.00\.\d+/)
That's still quite specific, but should work as long as they don't
localize the product name itself. I doubt they do that even in
Japanese/Chinese - Hiroshi (or someone else with a Japanese install),
can you confirm what the output from "vcbuild /?" is on a Japanese
machine?
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Hiroshi Saito <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> |
Cc: | Greg Smith <greg(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Foreign Visual Studio builds |
Date: | 2010-10-17 14:41:22 |
Message-ID: | AANLkTinT67VgXbrEn8C=hCL+Owrqxb_z4MbAeXtOJf9G@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Wow, that's interesting - the german version localizes different parts
of the string!
I'm going to apply the change that makes it look only at the
"Microsoft(R) Visual C++" part, and ignore "Project Builder".
//Magnus
On Fri, Oct 15, 2010 at 17:48, Hiroshi Saito <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> wrote:
> Hi.
>
> Ahh, as for Japanese, it becomes the same.
>
> C:\MinGW\home\HIROSHI>vcbuild /?
> Microsoft(R) Visual C++ Project Builder - コマンド ライン バージョン 9.00.21022
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> http://winpg.jp/~saito/pg_work/VisualStudio/vcbuild_help_SJIS.txt
>
> Regards,
> Hiroshi Saito
>
> ----- Original Message ----- From: "Magnus Hagander" <magnus(at)hagander(dot)net>
>
>
> On Thu, Oct 14, 2010 at 19:37, Greg Smith <greg(at)2ndquadrant(dot)com> wrote:
>>
>> We got an interesting documentation document left by Christian Freund
>> recently, in regards to
>> http://www.postgresql.org/docs/9.0/interactive/install-windows-full.html ;
>> it says:
>>
>> Regarding 16.1.3 - "perl mkvcbuild.pl"
>>
>> In case you use a German version of VC change line 69 in "Solution.pm" to:
>>
>> if ($line !~ /^Microsoft\s*\(R\) Visual C\+\+-Projekt-Generator -
>> \D+(\d+)\.00\.\d+/)
>>
>>
>> I'm going to approve the doc comment so that it might help someone else
>> that
>> runs into this in the short-term, but I thought it was was worth sharing
>> as
>> something that might be improved in the build code instead. That regex
>> seems a bit too specific.
>
> yeah. I wonder if we can't just get away with:
> if ($line !~ /^Microsoft\s*\(R\) Visual C\+\+ [^-]+ - \D+(\d+)\.00\.\d+/)
>
> That's still quite specific, but should work as long as they don't
> localize the product name itself. I doubt they do that even in
> Japanese/Chinese - Hiroshi (or someone else with a Japanese install),
> can you confirm what the output from "vcbuild /?" is on a Japanese
> machine?
>
> --
> Magnus Hagander
> Me: http://www.hagander.net/
> Work: http://www.redpill-linpro.com/
>
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/