diff options
author | Sebastian Geerken (patch by Johannes Hofmann) <devnull@localhost> | 2012-09-13 09:44:09 +0200 |
---|---|---|
committer | Sebastian Geerken (patch by Johannes Hofmann) <devnull@localhost> | 2012-09-13 09:44:09 +0200 |
commit | cb4003e1cac5abfbc7b02cb57d4663d976ef8550 (patch) | |
tree | fc6bdf9a0c195ee41751abc828015f495c68da88 /dw/hyphenator.cc | |
parent | eb64db506bb05ac4c1e357341140aa0091846009 (diff) |
Correction of last patch.
Diffstat (limited to 'dw/hyphenator.cc')
-rw-r--r-- | dw/hyphenator.cc | 7 |
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); |