~ubuntu-branches/ubuntu/feisty/irssi/feisty-backports

« back to all changes in this revision

Viewing changes to debian/patches/02tr_TR.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): David Pashley
  • Date: 2005-12-10 21:25:51 UTC
  • Revision ID: james.westby@ubuntu.com-20051210212551-2iq3p5jfilqd1r6l
Tags: 0.8.10-1
new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 02tr_TR.dpatch by David Pashley <david@davidpashley.com>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: No description.
 
6
 
 
7
@DPATCH@
 
8
diff -urNad --exclude=CVS --exclude=.svn ./src/perl/perl-common.c /tmp/dpep-work.uNmkb9/irssi-0.8.10~rc5/src/perl/perl-common.c
 
9
--- ./src/perl/perl-common.c    2004-01-20 12:08:41.000000000 +0200
 
10
+++ /tmp/dpep-work.uNmkb9/irssi-0.8.10~rc5/src/perl/perl-common.c       2005-07-15 22:10:34.000000000 +0300
 
11
@@ -566,8 +566,13 @@
 
12
        chat_type = chat_protocol_lookup(rec->name);
 
13
        g_return_if_fail(chat_type >= 0);
 
14
 
 
15
+#if GLIB_MAJOR_VERSION < 2
 
16
        name = g_strdup(rec->name);
 
17
        g_strdown(name+1);
 
18
+#else
 
19
+       name = g_ascii_strdown(rec->name,-1);
 
20
+       *name = *(rec->name);
 
21
+#endif
 
22
 
 
23
        /* window items: channel, query */
 
24
        type = module_get_uniq_id_str("WINDOW ITEM TYPE", "CHANNEL");