bug-global
[Top][All Lists]
Advanced

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

Re: [python3 only] when use "--gtagslabel=pygements", gtags don't output


From: Shigio YAMAGUCHI
Subject: Re: [python3 only] when use "--gtagslabel=pygements", gtags don't output (C language) function names into GTAGS
Date: Mon, 13 Mar 2017 14:58:06 +0900

Hi,
I have committed the patch (slightly modified version) to the repository.
Thank you.

Regards,
Shigio


2017-03-12 21:57 GMT+09:00 ishigane <address@hidden>:
Yes, this code is more safe than my patch on UNIX.

> Can I change it as follows?
>
> -        path = p.stdout.readline().rstrip()
> +        if sys.platform == 'win32' and sys.version_info >= (3,):
> +            path = io.TextIOWrapper(p.stdout,
> encoding='latin1').readline().rstrip()
> +        else:
> +            path = p.stdout.readline().rstrip()

I appreciate your kindness.

Thanks,
Seigo Ishigane



--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: 
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB (Currently in use)
D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3 (Used until 2017/2)

reply via email to

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