summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Longinotti <chtekk@gentoo.org>2007-05-11 22:01:04 +0000
committerLuca Longinotti <chtekk@gentoo.org>2007-05-11 22:01:04 +0000
commitd6f94bdcefec84ea0167359bc08201f9c285d1df (patch)
treef4ab9ce42fb9c4ac44ebfedc52f4292898549d3b /net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug164612.patch
parentadd metadata.xml (diff)
downloadgentoo-2-d6f94bdcefec84ea0167359bc08201f9c285d1df.tar.gz
gentoo-2-d6f94bdcefec84ea0167359bc08201f9c285d1df.tar.bz2
gentoo-2-d6f94bdcefec84ea0167359bc08201f9c285d1df.zip
Fix bugs #164612, #167003 and #175082.
(Portage version: 2.1.2.7)
Diffstat (limited to 'net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug164612.patch')
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug164612.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug164612.patch b/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug164612.patch
new file mode 100644
index 000000000000..060fc9518456
--- /dev/null
+++ b/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug164612.patch
@@ -0,0 +1,23 @@
+--- modules/mod_lang.c 2007/01/19 21:59:44 1.4
++++ modules/mod_lang.c 2007/01/19 23:01:25 1.5
+@@ -262,10 +262,19 @@
+
+ static int lang_init(void) {
+ if (setlocale(LC_ALL, "") == NULL) {
+- pr_log_pri(PR_LOG_NOTICE, "unable to set locale: %s", strerror(errno));
++ pr_log_pri(PR_LOG_NOTICE, "unable to set LC_ALL: %s", strerror(errno));
+ return -1;
+ }
+
++ /* Preserve the POSIX/portable handling of number formatting; local
++ * formatting of decimal points, for example, can cause problems with
++ * numbers in SQL queries.
++ */
++ if (setlocale(LC_NUMERIC, "C") == NULL) {
++ pr_log_pri(PR_LOG_NOTICE, "unable to set LC_NUMERIC: %s",
++ strerror(errno));
++ }
++
+ lang_pool = make_sub_pool(permanent_pool);
+ pr_pool_tag(lang_pool, MOD_LANG_VERSION);
+