File: 20_original.dpatch

package info (click to toggle)
libintl-gettext-ruby 0.11-11
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 136 kB
  • ctags: 8
  • sloc: ansic: 100; sh: 24; ruby: 13; makefile: 3
file content (32 lines) | stat: -rw-r--r-- 1,130 bytes parent folder | download
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
#! /bin/sh /usr/share/dpatch/dpatch-run
## 20_original.dpatch by  <vincent.fourmond@9online.fr>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: New patch generated from libintl-gettext-ruby 0.11-8 diff.gz

@DPATCH@

--- libintl-gettext-ruby-0.11.orig/intl.c
+++ libintl-gettext-ruby-0.11/intl.c
@@ -20,11 +20,6 @@
     char* lang;
     Check_Type( domain, T_STRING );
 /*    setlocale( LC_MESSAGES, "" );*/
-    if ( lang = getenv( "LC_ALL" ) )
-        setlocale( LC_ALL, lang );
-    else if ( lang = getenv( "LANG" ) )
-        setlocale( LC_ALL, lang );
-    else
         setlocale( LC_ALL, "" );
     textdomain( STR2CSTR( domain ) );
 
--- libintl-gettext-ruby-0.11.orig/extconf.rb
+++ libintl-gettext-ruby-0.11/extconf.rb
@@ -4,6 +4,6 @@
 $CFLAGS = "-I/usr/local/include";
 have_library( "xpg4", "setlocale" );
 have_header( "locale.h" );
-if ( have_header( "libintl.h" ) and (have_library( "intl", "gettext" ) or have_func( "gettext" )) )
+if ( have_header( "libintl.h" ) and (have_library( "intl", "gettext" ) or have_func( "gettext", "libintl.h" )) )
     create_makefile( "intl" );
 end