bug-global
[Top][All Lists]
Advanced

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

Re: Python 3 and pygments-parser


From: Shigio YAMAGUCHI
Subject: Re: Python 3 and pygments-parser
Date: Wed, 8 May 2024 09:17:36 +0900

Hi Marcus,

> The method ‘load_ctags_path()’ doesn't work with Python 3
> (unless perhaps with Win32/latin1).
> In other places the encoding has been fixed to ‘latin1’ as well.

It doesn't matter that the encoding is latin1, because Global
doesn't support multi-byte code set.

        [FAQ]
        Q10. Does Global support multi-byte code set?
             Which character code set is supported?

        A10. Global doesn't support multi-byte character code set yet.
             Global supports only ASCII and ASCII super-sets.

> At least for ‘load_gtags_path()’ I'd probably change the encoding
> to the current locale with ‘locale.getpreferredencoding(False)’.

What does it accomplish?

> Python 2 support has been dropped from Pygments more than
> four years ago. Does it make sense to maintain Python 2
> compatibility in the pygments-parser?

Though maintaining compatibility is important, if we can achieve
something that users will be happy with, it is not the top priority.
I'd appreciate it if you could let me know what you're trying
to achieve.

Regards,
Shigio
-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB



reply via email to

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