Skip to content

Commit ef31c2b

Browse files
committed
Add comment on why pg *printf functions are used unconditionally on
Win32. Backpatch to 8.1.X.
1 parent e0e7589 commit ef31c2b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

configure

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13895,6 +13895,10 @@ fi
1389513895

1389613896
if test "$PORTNAME" = "win32"; then
1389713897
# Win32 gets this built unconditionally
13898+
# libintl versions prior to 0.13 use the native *printf functions.
13899+
# Win32 *printf does not understand %$, so on Win32 using pre-0.13 libintl
13900+
# it is necessary to use the pg versions of *printf to properly process
13901+
# NLS strings that use the %$ format.
1389813902
pgac_need_repl_snprintf=yes
1389913903
else
1390013904
pgac_need_repl_snprintf=no

configure.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.434 2005/12/06 02:29:03 tgl Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.435 2005/12/06 04:53:02 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -859,6 +859,10 @@ fi
859859

860860
if test "$PORTNAME" = "win32"; then
861861
# Win32 gets this built unconditionally
862+
# libintl versions prior to 0.13 use the native *printf functions.
863+
# Win32 *printf does not understand %$, so on Win32 using pre-0.13 libintl
864+
# it is necessary to use the pg versions of *printf to properly process
865+
# NLS strings that use the %$ format.
862866
pgac_need_repl_snprintf=yes
863867
else
864868
pgac_need_repl_snprintf=no

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy