summaryrefslogtreecommitdiff
path: root/testing/man-db/1361_1360.diff
blob: c93856980ac0041f4a0a6c9eddb370621d9cd81a (plain)
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
=== modified file 'src/straycats.c'
--- src/straycats.c	2011-01-10 20:08:22 +0000
+++ src/straycats.c	2011-06-04 06:34:51 +0000
@@ -177,6 +177,7 @@
 			char *lang, *page_encoding;
 			char *mandir_base;
 			pipecmd *col_cmd;
+			char *col_locale;
 			char *fullpath;
 
 			/* we have a straycat. Need to filter it and get
@@ -226,6 +227,12 @@
 			col_cmd = pipecmd_new_argstr
 				(get_def_user ("col", COL));
 			pipecmd_arg (col_cmd, "-bx");
+			col_locale = find_charset_locale ("UTF-8");
+			if (col_locale) {
+				pipecmd_setenv (col_cmd, "LC_CTYPE",
+						col_locale);
+				free (col_locale);
+			}
 			pipeline_command (decomp, col_cmd);
 
 			fullpath = canonicalize_file_name (catdir);