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: ishigane
Subject: Re: [python3 only] when use "--gtagslabel=pygements", gtags don't output (C language) function names into GTAGS
Date: Sun, 12 Mar 2017 21:57:43 +0900
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

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



reply via email to

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