summaryrefslogtreecommitdiffstats
path: root/contrib/groff
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-10-11 16:04:04 +0000
committerru <ru@FreeBSD.org>2002-10-11 16:04:04 +0000
commitab2c19acae983f1f1f61dedf6270a3fe2defd3ce (patch)
treeb6ce9a99e03e92054da0eb80686c37aa71f93901 /contrib/groff
parentd95ca6e95c94196dcd9fa5575dfab599c782c895 (diff)
downloadFreeBSD-src-ab2c19acae983f1f1f61dedf6270a3fe2defd3ce.zip
FreeBSD-src-ab2c19acae983f1f1f61dedf6270a3fe2defd3ce.tar.gz
Hyphenation of characters with codes above 128 was broken.
This my patch has just been committed to the Groff source repository.
Diffstat (limited to 'contrib/groff')
-rw-r--r--contrib/groff/src/roff/troff/env.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/groff/src/roff/troff/env.cc b/contrib/groff/src/roff/troff/env.cc
index 40c9e3c..b14ffb6 100644
--- a/contrib/groff/src/roff/troff/env.cc
+++ b/contrib/groff/src/roff/troff/env.cc
@@ -3720,7 +3720,7 @@ void hyphen_trie::read_patterns_file(const char *name, int append,
if (i > 0) {
if (have_patterns || final_pattern || traditional) {
for (int j = 0; j < i; j++)
- buf[j] = hpf_code_table[buf[j]];
+ buf[j] = hpf_code_table[(unsigned char)buf[j]];
insert_pattern(buf, i, num);
final_pattern = 0;
}
OpenPOWER on IntegriCloud