-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
WindowsPlatform: WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.standard libraryArea: Standard library umbrellaArea: Standard library umbrella
Description
Previous ID | SR-13807 |
Radar | None |
Original Reporter | svanimpe (JIRA User) |
Type | Bug |
Status | Closed |
Resolution | Done |
Environment
29/10 snapshot on Windows
Additional Detail from JIRA
Votes | 1 |
Component/s | Standard Library |
Labels | Bug, Windows |
Assignee | @compnerd |
Priority | Medium |
md5: 206fbad8245b125d62b0d21d1914e7ff
Issue Description:
Whenever I run a Swift app on Windows, I first have to set the correct code page in my terminal with chcp 65001
, or add the following to my app:
import WinSDK
_ = SetConsoleOutputCP(UINT(CP_UTF8))
Is there a way to do this by default? @compnerd suggested doing it in the runtime.
Metadata
Metadata
Assignees
Labels
WindowsPlatform: WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.standard libraryArea: Standard library umbrellaArea: Standard library umbrella