Skip to content

Properly deal with console codepages on windows #6795

@be5invis

Description

@be5invis

Under CP936, CJK characters in REPL are misencoded. For example, print("测试") is encoded into print("\262\342\312\324"), where 0xB2E2 is the CP936 encoding of "测" and 0xCAD4 is encoded "试".

libuv's TTY adapter (for windows) might help.


  • cooked mode libuv uses A version of console read/write functions instead of W (with a note in the code that it should be fixed)
  • provide information on how to switch away from the (default) raster font
  • force CP=437 for the console (and elsewhere), so we at least know we support ASCII

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)system:windowsAffects only Windows

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions