diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-04-19 17:09:12 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-04-19 17:09:12 +0000 |
| commit | f42941536c6c16ba8b89dd5f25d8a747e3d5495d (patch) | |
| tree | b2533971228e8aeca27debb8e0ebb2ce7a85c107 /bk_info.c | |
| parent | d74917688ba7d95ed71fe836091ec9d952f433e6 (diff) | |
| download | halibut-f42941536c6c16ba8b89dd5f25d8a747e3d5495d.zip halibut-f42941536c6c16ba8b89dd5f25d8a747e3d5495d.tar.gz halibut-f42941536c6c16ba8b89dd5f25d8a747e3d5495d.tar.bz2 halibut-f42941536c6c16ba8b89dd5f25d8a747e3d5495d.tar.xz | |
Better robustness when backends encounter a Unicode character not
representable in the output character set.
[originally from svn r4094]
Diffstat (limited to 'bk_info.c')
| -rw-r--r-- | bk_info.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -747,7 +747,7 @@ static void info_rdaddwc(rdstringc *rs, word *words, word *end, int xrefs) { attraux(words->aux) == attr_Only)) rdaddc(rs, '`'); /* FIXME: configurability */ if (removeattr(words->type) == word_Normal) { - if (info_convert(words->text, &c)) + if (info_convert(words->text, &c) || !words->alt) rdaddsc(rs, c); else info_rdaddwc(rs, words->alt, NULL, FALSE); @@ -807,7 +807,7 @@ static int info_width_internal(word *words, int xrefs) { ? (attraux(words->aux) == attr_Only ? 2 : attraux(words->aux) == attr_Always ? 0 : 1) : 0) + - (info_convert(words->text, NULL) ? + (info_convert(words->text, NULL) || !words->alt ? ustrlen(words->text) : info_width_internal_list(words->alt, xrefs))); |