File: 50-no-am-langinfo-codeset.patch

package info (click to toggle)
easyh10 1.5-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,544 kB
  • sloc: ansic: 9,049; sh: 8,387; makefile: 77
file content (38 lines) | stat: -rw-r--r-- 976 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Remove usage of obsolete AM_LANGINFO_CODESET
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/978389

--- easyh10-1.5.orig/configure.in
+++ easyh10-1.5/configure.in
@@ -181,7 +181,6 @@ case $with_libiconv in
     AC_DEFINE(USE_LIBICONV_NATIVE, 1, [Using a native implementation of iconv in a separate library])
     ;;
 esac
-AM_LANGINFO_CODESET
 
 
 dnl Checks for id3tag
--- easyh10-1.5.orig/cui/main.c
+++ easyh10-1.5/cui/main.c
@@ -41,9 +41,7 @@
 #include <filepathutil.h>
 #include <easyh10.h>
 
-#ifdef HAVE_LANGINFO_CODESET
 #include <langinfo.h>
-#endif
 
 #ifdef	HAVE_GETOPT_H
 #include <getopt.h>
@@ -889,11 +887,9 @@ int main(int argc, char *argv[])
 	if (!encoding_specified) {
 		const char *encoding = getenv("CHARSET");
 
-#ifdef	HAVE_LANGINFO_CODESET
 		if (!encoding) {
 			encoding = nl_langinfo(CODESET);
 		}
-#endif/*HAVE_LANGINFO_CODESET*/
 
 		if (encoding) {
 			/* EasyH10 could detect the character encoding. */