Re: Python 3 and pygments-parser

Marcus Harnisch <[email protected]> Mon, 13 May 2024 10:04:22 +0200
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <CAAmKruUfgNOCv1TgvHBzTVCvf50r=Bk9D91+92xhyu2kr7MrkQ@mail.gmail.com>
--000000000000f544f40618515578
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Shigio

On Sat, May 11, 2024 at 5:35=E2=80=AFAM Shigio YAMAGUCHI <[email protected]> w=
rote:

> $ cat gtags.conf
> default:\
> :ctagscom=3D/opt/local/bin/uctags:\
> :langmap=3DC\:.c.h:\
> :gtags_parser=3DC\:/usr/local/lib/gtags/pygments-parser.la:
>

The important difference, which exposes the bug, is your explicit
configuration of ctagscom. Leave it undefined and rely on whatever
UNIVERSAL_CTAGS has been configured to. Only if ctagscom is empty, you will
see a comparison between b'' (empty bytearray) and '' (empty string).

Best regards,
Marcus

--000000000000f544f40618515578
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-size:small">Hi Shigio</div><div class=3D"gmail_default" style=3D"font-siz=
e:small"></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Sat, May 11, 2024 at 5:35=E2=80=AFAM Shigio YAMAGUCHI &l=
t;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<br></div>=
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex">
$ cat gtags.conf<br>
default:\<br>
:ctagscom=3D/opt/local/bin/uctags:\<br>
:langmap=3DC\:.c.h:\<br>
:gtags_parser=3DC\:/usr/local/lib/gtags/<a href=3D"http://pygments-parser.l=
a" rel=3D"noreferrer" target=3D"_blank">pygments-parser.la</a>:<br></blockq=
uote><div><br></div><div style=3D"font-size:small" class=3D"gmail_default">=
The important difference, which exposes the bug, is your explicit configura=
tion of ctagscom. Leave it undefined and rely on whatever UNIVERSAL_CTAGS h=
as been configured to. Only if ctagscom is empty, you will see a comparison=
 between b&#39;&#39; (empty bytearray) and &#39;&#39; (empty string).</div>=
<div style=3D"font-size:small" class=3D"gmail_default"><br></div><div style=
=3D"font-size:small" class=3D"gmail_default">Best regards,</div><div style=
=3D"font-size:small" class=3D"gmail_default">Marcus<br></div></div></div>

--000000000000f544f40618515578--