core/man-db/1361_1360.diff
2011-07-23 20:27:06 +00:00

25 lines
696 B
Diff

=== 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);