Skip to content

included less can't display utf8 chars #759

@jankatins

Description

@jankatins
  • I was not able to find an open
    or closed issue
    matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? 32-bit or 64-bit? Include the
    output of git version as well.

64bit AFAIK

c:\data\external\R\repr (packageIQR)
λ git version
git version 2.7.2.windows.1
  • Which version of Windows are you running? 32-bit or 64-bit?

64bit Windows 7

  • What options did you set as part of the installation? Or did you choose the
    defaults?

Defaults (add cmd to path, nothing else added, but cmder adds the unix commands into the path)

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

I use cmder (ConEmu + clink) and usually put chcp 65001

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

cmder with cmd, but this also happens in a normal cmd window

c:\data\external\R\repr (packageIQR)
λ which less
C:\Program Files\Git\usr\bin\less.exe

c:\data\external\R\repr (packageIQR)
λ chcp 850
Aktive Codepage: 850.

c:\data\external\R\repr (packageIQR)
λ git slog |grep a27c12e
a27c12e don’t double escape latex list names

c:\data\external\R\repr (packageIQR)
λ git slog
[...]
a27c12e don<E2><80><99>t double escape latex list names
[...]

c:\data\external\R\repr (packageIQR)
λ chcp 65001
Aktive Codepage: 65001.

c:\data\external\R\repr (packageIQR)
λ git slog |grep a27c12e
a27c12e don’t double escape latex list names

c:\data\external\R\repr (packageIQR)
λ git slog
[...]
a27c12e don<E2><80><99>t double escape latex list names

  • What did you expect to occur after running these commands?

all commands should produces a proper don’t

  • What actually happened instead?

UTF8 is mangeled when used with less (which I infered from git slog |grep a27c12e |less producing the same mangeled output

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

https://github.com/IRkernel/repr.git

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions