]> granicus.if.org Git - postgresql/commitdiff
Add comment on why pg *printf functions are used unconditionally on
authorBruce Momjian <bruce@momjian.us>
Tue, 6 Dec 2005 04:53:28 +0000 (04:53 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 6 Dec 2005 04:53:28 +0000 (04:53 +0000)
Win32.

Backpatch to 8.1.X.

configure
configure.in

index 26233f1e1c39b75070ca73e38c53fcb9dc3406ba..2fdc17b1cbf4d7618a817742e21de0089c958f4b 100755 (executable)
--- a/configure
+++ b/configure
 
 if test "$PORTNAME" = "win32"; then
   # Win32 gets this built unconditionally
+  # libintl versions prior to 0.13 use the native *printf functions.
+  # Win32 *printf does not understand %$, so on Win32 using pre-0.13 libintl
+  # it is necessary to use the pg versions of *printf to properly process
+  # NLS strings that use the %$ format.
   pgac_need_repl_snprintf=yes
 else
   pgac_need_repl_snprintf=no
index 11ae126628fbeae637cb0418e2194b3ccea8da8b..d8b643a26ef89f2bfc90a395b3c3d5de3db9f777 100644 (file)
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.431.2.1 2005/12/06 02:29:25 tgl Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.431.2.2 2005/12/06 04:53:28 momjian Exp $
 dnl
 dnl Developers, please strive to achieve this order:
 dnl
@@ -852,6 +852,10 @@ fi
 
 if test "$PORTNAME" = "win32"; then
   # Win32 gets this built unconditionally
+  # libintl versions prior to 0.13 use the native *printf functions.
+  # Win32 *printf does not understand %$, so on Win32 using pre-0.13 libintl
+  # it is necessary to use the pg versions of *printf to properly process
+  # NLS strings that use the %$ format.
   pgac_need_repl_snprintf=yes
 else
   pgac_need_repl_snprintf=no