Package: asciijump / 1.0.2~beta-7.1

03_slang2.patch Patch series | 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
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_slang2.dpatch by Mario Iseli <admin@marioiseli.com>
##
## DP: Builds now Builds now on libslang2-dev

@DPATCH@

Index: asciijump/slang.c
===================================================================
--- asciijump.orig/slang.c	2010-08-27 14:37:58.571754078 +0900
+++ asciijump/slang.c	2010-08-31 12:35:04.000000000 +0900
@@ -109,6 +109,12 @@
 	if (SLang_init_tty(-1, 0, 0) == -1)
 		sl_die("Unable to initialize SLang terminal.");
 	SLsmg_init_smg();
+
+	/* enable UTF-8 mode if using appropiate locale */
+	SLutf8_enable(-1);
+	SLtt_utf8_enable(-1);
+	SLsmg_utf8_enable(-1);
+	SLinterp_utf8_enable(-1);
 	
 	SLang_set_abort_signal(int_handler);