bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

extra keys from XS parser not decoded?


From: Patrice Dumas
Subject: extra keys from XS parser not decoded?
Date: Thu, 24 Feb 2022 23:50:51 +0100

Hello,

I have some differences between the perl Parser and the XS parser for
non ascii strings for extra values.  The perl Parser seems to be ok.

My feeling is that the strings are not properly decoded.  An analysis,
that may be completly off, is that SvUTF8_on should be called on
something, maybe around l 479 in tp/Texinfo/XS/parsetexi/api.c:

            case extra_string:
              { /* A simple string. */
              char *value = (char *) f;
              STORE(newSVpv (value, 0));
              break;
              }

Also maybe there could be a list to avoid decoding strings that should
not be decoded.  For now I spotted one in the perl Parser, but which is
not in the final tree for now (extra->file for include).

-- 
Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]