summaryrefslogtreecommitdiff
path: root/src/xlibi18n/lcFile.c
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2010-01-13 11:04:38 -0500
committerJames Cloos <cloos@jhcloos.com>2010-01-13 11:04:38 -0500
commit9df349a7894725f9469b106af645f57f7f3f9af3 (patch)
tree6caf14ab859172564c2cc507ee76931335a662a4 /src/xlibi18n/lcFile.c
parentccf21a8877f40136e25f2f62d0668b0c76b3cfbd (diff)
Allow inclusion of system level compose files.
With the release of XFree86 4.4 an inclusion system of compose files was added to Xlib to allow inclusion of the default compose file (with %L), any compose files from user’s home directory (with %H), or a compose file with a hard coded path¹. However, even today including system level compose files is not possible in a platform independent manner although the machinery for including compose files and overriding previously defined compositions is already in place. With the ability to include system level compose files one could greatly reduce the need for compose file rule duplication and the work needed to propagate changes in one compose file to others. For example, currently the Finnish compose file fi_FI.UTF-8 weights over 5000 lines² but it is almost identical with en_US.UTF-8 except for perhaps half a dozen compositions. This commit allows one to include system level compose files with the following kind of syntax: include "%S/en_US.UTF-8/Compose" 1] http://www.xfree86.org/4.4.0/RELNOTES5.html#42 2] http://cgit.freedesktop.org/xorg/lib/libX11/tree/nls/fi_FI.UTF-8/Compose.pre Signed-off-by: Marko Myllynen <myllynen@redhat.com> Signed-off-by: James Cloos <cloos@jhcloos.com>
Diffstat (limited to 'src/xlibi18n/lcFile.c')
-rw-r--r--src/xlibi18n/lcFile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xlibi18n/lcFile.c b/src/xlibi18n/lcFile.c
index 778e2690..2c15b27c 100644
--- a/src/xlibi18n/lcFile.c
+++ b/src/xlibi18n/lcFile.c
@@ -219,7 +219,7 @@ _XlcParsePath(
#define XLOCALEDIR "/usr/lib/X11/locale"
#endif
-static void
+void
xlocaledir(
char *buf,
int buf_len)