aboutsummaryrefslogtreecommitdiff
path: root/dw/hyphenator.cc
diff options
context:
space:
mode:
authorSebastian Geerken (patch by Johannes Hofmann) <devnull@localhost>2012-09-13 09:44:09 +0200
committerSebastian Geerken (patch by Johannes Hofmann) <devnull@localhost>2012-09-13 09:44:09 +0200
commitcb4003e1cac5abfbc7b02cb57d4663d976ef8550 (patch)
treefc6bdf9a0c195ee41751abc828015f495c68da88 /dw/hyphenator.cc
parenteb64db506bb05ac4c1e357341140aa0091846009 (diff)
Correction of last patch.
Diffstat (limited to 'dw/hyphenator.cc')
-rw-r--r--dw/hyphenator.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/dw/hyphenator.cc b/dw/hyphenator.cc
index 6b9e1c7e..0fbdb699 100644
--- a/dw/hyphenator.cc
+++ b/dw/hyphenator.cc
@@ -90,11 +90,12 @@ Hyphenator *Hyphenator::getHyphenator (core::Platform *platform,
if (hyphenator)
delete pair;
else {
- // TODO Much hard-coded!
char patFile [PATH_MAX];
- snprintf (patFile, sizeof (patFile), "%s/hyphenation/%s.pat", DILLO_LIB, lang);
+ snprintf (patFile, sizeof (patFile), "%s/hyphenation/%s.pat",
+ DILLO_LIBDIR, lang);
char excFile [PATH_MAX];
- snprintf (excFile, sizeof(excFile), "%s/hyphenation/%s.exc", DILLO_LIB, lang);
+ snprintf (excFile, sizeof(excFile), "%s/hyphenation/%s.exc",
+ DILLO_LIBDIR, lang);
//printf ("Loading hyphenation patterns for language '%s' from '%s' and "
// "exceptions from '%s' ...\n", lang, patFile, excFile);