diff options
author | Luca Longinotti <chtekk@gentoo.org> | 2007-05-11 22:01:04 +0000 |
---|---|---|
committer | Luca Longinotti <chtekk@gentoo.org> | 2007-05-11 22:01:04 +0000 |
commit | ceba490e8deb8b1030d4576f1ccb6d417c295b03 (patch) | |
tree | bf731841edd75c9099cc6b1854cfd4d3ab6556c9 /net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug164612.patch | |
parent | add metadata.xml (diff) | |
download | historical-ceba490e8deb8b1030d4576f1ccb6d417c295b03.tar.gz historical-ceba490e8deb8b1030d4576f1ccb6d417c295b03.tar.bz2 historical-ceba490e8deb8b1030d4576f1ccb6d417c295b03.zip |
Fix bugs #164612, #167003 and #175082.
Package-Manager: portage-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.patch | 23 |
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); + |