[Bug 6226] New: terminfo color mode appears broken on Python 3
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Thu Nov 21 22:07:08 UTC 2019
https://bz.mercurial-scm.org/show_bug.cgi?id=6226
Bug ID: 6226
Summary: terminfo color mode appears broken on Python 3
Product: Mercurial
Version: default branch
Hardware: All
OS: Linux
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: color
Assignee: bugzilla at mercurial-scm.org
Reporter: gregory.szorc at gmail.com
CC: mercurial-devel at mercurial-scm.org
Python Version: 3.7
Using Python 3.7:
```
$ hg debugcolor
warning: failed to set color mode to terminfo
ignoring unknown color/effect 'lightyellow' (configured in color.log.summary)
ignoring unknown color/effect 'lightyellow' (configured in
color.log.description)
ignoring unknown color/effect 'darkorange' (configured in color.log.tag)
ignoring unknown color/effect 'orange' (configured in color.changeset.public)
ignoring unknown color/effect 'brightyellow' (configured in
color.changeset.draft)
warning: failed to set color mode to terminfo
ignoring unknown color/effect 'lightyellow' (configured in color.log.summary)
ignoring unknown color/effect 'lightyellow' (configured in
color.log.description)
ignoring unknown color/effect 'darkorange' (configured in color.log.tag)
ignoring unknown color/effect 'orange' (configured in color.changeset.public)
ignoring unknown color/effect 'brightyellow' (configured in
color.changeset.draft)
warning: failed to set color mode to terminfo
ignoring unknown color/effect 'lightyellow' (configured in color.log.summary)
ignoring unknown color/effect 'lightyellow' (configured in
color.log.description)
ignoring unknown color/effect 'darkorange' (configured in color.log.tag)
ignoring unknown color/effect 'orange' (configured in color.changeset.public)
ignoring unknown color/effect 'brightyellow' (configured in
color.changeset.draft)
color mode: 'ansi'
available colors:
black
blue
bold
cyan
dim
green
inverse
italic
magenta
none
red
underline
white
yellow
black_background
blue_background
cyan_background
green_background
purple_background
red_background
white_background
yellow_background
```
I've briefly stepped through the color code and I suspect a str/bytes mismatch
when calling into some stdlib functions. I wouldn't be surprised if pytypes
identifies the issue pretty quickly...
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list