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: bugzi...@mercurial-scm.org
          Reporter: gregory.sz...@gmail.com
                CC: mercurial-devel@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.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to