Hyphenation of characters with codes above 128 was broken.

This my patch has just been committed to the Groff source
repository.
This commit is contained in:
Ruslan Ermilov 2002-10-11 16:04:04 +00:00
parent 8b80da3584
commit 75e206f5ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/groff/dist/; revision=104912

View file

@ -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;
}