Skip to content

Displayed errors from internally run tty's have broken encoding #16892

Open

Description

@ankhzet

The problem

When app performs some operations in a terminal and encounters an error, the error message encoding can be broken, if the process inside the terminal used non-utf encoding.

F.e. upon performing a "commit", git hook can be invoked that throws an error, encoded in either win-1251 or cp-866 (cyrillic), but the display dialog assumes the text is in utf.

Release version

3.2.3 (x64)

Operating system

Windows 11

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

image

Additional context

No response

Activity

  1. added
    bug
    priority-3
    on Jun 14, 2023
  2. ankhzet commented on Jun 15, 2023

    @ankhzet
    Author

    Additional context.
    The error displayed is the same as in this issue #11015 , just for cyrillic locale.

    In essence: commit > commit hook > commit script contains shebang line #!/bin/bash > bash resolves to C:\Windows\System32\bash.exe which errors with win-1251/cp-866-encoded message > error message displayed in a broken encoding (assumed utf-8)
    Should be the same result if commit hook errors and prints in a non-utf encoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions