diff options
author | ru <ru@FreeBSD.org> | 2002-10-11 16:04:04 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-10-11 16:04:04 +0000 |
commit | ab2c19acae983f1f1f61dedf6270a3fe2defd3ce (patch) | |
tree | b6ce9a99e03e92054da0eb80686c37aa71f93901 | |
parent | d95ca6e95c94196dcd9fa5575dfab599c782c895 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | contrib/groff/src/roff/troff/env.cc | 2 |
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; } |