Update of bug #67570 (group groff):
Status: Confirmed => In Progress
Assigned to: None => gbranden
_______________________________________________________
Follow-up Comment #11:
Just as you'd figure, something not trivial slipped into that trivial
refactoring.
@@ -10251,7 +10251,7 @@ void charinfo::get_flags()
// troff's dictionary types use a pre-STL approach to containers.
while (iter.get(&s, reinterpret_cast<void **>(&ci))) {
assert(!s.is_null());
- if (ci->contains(get_unicode_code())) {
+ if (ci->contains(get_unicode_mapping() >= 0)) {
#if defined(DEBUGGING)
if (want_html_debugging)
fprintf(stderr, "charinfo::get_flags %p %s %d\n",
Going back to HEAD and patching...
$ git diff
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 8f3e16d09..4cb8481d9 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -10611,7 +10611,7 @@ void charinfo::get_flags()
// troff's dictionary types use a pre-STL approach to containers.
while (iter.get(&s, reinterpret_cast<void **>(&ci))) {
assert(!s.is_null());
- if (ci->contains(get_unicode_mapping() >= 0)) {
+ if (ci->contains(get_unicode_mapping())) {
#if defined(DEBUGGING)
if (want_html_debugging)
fprintf(stderr, "charinfo::get_flags %p %s %d\n",
$ ./build/test-groff -T utf8 ATTIC/67570-indirect.groff | od -c
special character '[EOS]'
defined at: file name: "ATTIC/67570-indirect.groff", line number: 1
contains ranges: U+2014
contains nested classes: (none)
special character 'em'
is not translated
has a macro: "file name": "tty.tmac", "starting line number": 22, "length":
10, "contents": "\\[em]\\[em]", "node list": [ ]
special translation: 0
hyphenation code: 0
flags: 5 (ends sentence, allows break after)
asciify code: 0
ASCII code: 0
Unicode mapping: U+2014
is found
is transparently translatable
is not translatable as input
mode: normal
0000000 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
0000020 \n I 342 200 224 342 200 224 f o l d . \n
0000040
Two spaces after the em dash as desired.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67570>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
