回答編集履歴

2

m

2021/05/08 00:40

投稿

yumetodo
yumetodo

スコア5850

test CHANGED
@@ -11,3 +11,15 @@
11
11
  > [https://github.com/microsoft/terminal/issues/4551#issuecomment-585487802](https://github.com/microsoft/terminal/issues/4551#issuecomment-585487802)
12
12
 
13
13
  > ReadFile and ReadConsoleA are currently limited to 7-bit ASCII when the input codepage is UTF-8 (65001) due to an assumption of 1 CHAR per WCHAR when calling WideCharToMultiByte.
14
+
15
+
16
+
17
+ ---
18
+
19
+
20
+
21
+ いやまてよ、そもそもこのバグが治ったとして、どうせ内部でUTF-16->UTF-8変換が挟まるなら、ユーザーランドでやっても変わらなくないか?となるとネタで昔作った
22
+
23
+ [https://github.com/yumetodo/utf8_streambuf](https://github.com/yumetodo/utf8_streambuf)
24
+
25
+ がまさかの出番という可能性・・・。

1

2021/05/08 00:40

投稿

yumetodo
yumetodo

スコア5850

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  にあるように、ReadConsoleW のラッパーたる_cgets_sを使うのがワークアラウンドっぽい?
6
6
 
7
- ucrt側のバグという可能性。
7
+ ucrt側のバグという可能性。せめてこの報告されてるissueをupvoteしておきますか・・・
8
8
 
9
9
 
10
10