RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Jeff Johnson
Root: /v/rpm/cvs Email: jbj@rpm5.org
Module: rpm Date: 31-Jan-2008 18:17:20
Branch: rpm-5_0 Handle: 2008013117171901
Modified files: (Branch: rpm-5_0)
rpm CHANGES configure.ac
rpm/rpmio strtolocale.c
Log:
- rse: allow to compile without <langinfo.h> and its nl_langinfo(3)
Summary:
Revision Changes Path
1.2054.2.29 +1 -0 rpm/CHANGES
2.269.2.8 +1 -0 rpm/configure.ac
1.6.2.1 +6 -0 rpm/rpmio/strtolocale.c
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/CHANGES
============================================================================
$ cvs diff -u -r1.2054.2.28 -r1.2054.2.29 CHANGES
--- rpm/CHANGES 29 Jan 2008 16:31:24 -0000 1.2054.2.28
+++ rpm/CHANGES 31 Jan 2008 17:17:19 -0000 1.2054.2.29
@@ -1,4 +1,5 @@
5.0.1 -> 5.0.2:
+ - rse: allow to compile without <langinfo.h> and its nl_langinfo(3)
5.0.0 -> 5.0.1:
- jbj: replace sr.po from translation project.
@@ .
patch -p0 <<'@@ .'
Index: rpm/configure.ac
============================================================================
$ cvs diff -u -r2.269.2.7 -r2.269.2.8 configure.ac
--- rpm/configure.ac 29 Jan 2008 14:31:23 -0000 2.269.2.7
+++ rpm/configure.ac 31 Jan 2008 17:17:19 -0000 2.269.2.8
@@ -537,6 +537,7 @@
sys/param.h sys/mount.h sys/mntctl.h sys/vmount.h dnl
libio.h err.h mcheck.h limits.h libgen.h float.h dnl
glob.h poll.h netinet/in.h arpa/inet.h stdint.h inttypes.h dnl
+ langinfo.h dnl
])
dnl # GNU gettext support
@@ .
patch -p0 <<'@@ .'
Index: rpm/rpmio/strtolocale.c
============================================================================
$ cvs diff -u -r1.6 -r1.6.2.1 strtolocale.c
--- rpm/rpmio/strtolocale.c 16 Jul 2007 07:16:57 -0000 1.6
+++ rpm/rpmio/strtolocale.c 31 Jan 2008 17:17:20 -0000 1.6.2.1
@@ -3,7 +3,9 @@
*/
#include "system.h"
+#ifdef HAVE_LANGINFO_H
#include <langinfo.h>
+#endif
#ifdef HAVE_ICONV
#include <iconv.h>
#endif
@@ -24,7 +26,11 @@
const char *src;
if (locale_encoding == NULL) {
+#ifdef HAVE_LANGINFO_H
const char *encoding = nl_langinfo(CODESET);
+#else
+ const char *encoding = "char";
+#endif
locale_encoding = xmalloc(strlen(encoding) + 11);
sprintf(locale_encoding, "%s//TRANSLIT", encoding);
locale_encoding_is_utf8 = strcasecmp(encoding, "UTF-8") == 0;
@@ .
Received on Thu Jan 31 18:17:20 2008