Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
3058fa47
R
runtime
项目概览
dotNET Platform
/
runtime
12 个月 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
3058fa47
编写于
1月 05, 2022
作者:
M
Marek Safar
提交者:
GitHub
1月 05, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace name with type and codepage in EncodingConversionOverflow exception (#62910)
上级
cab2fd80
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
4 deletion
+4
-4
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
...braries/System.Private.CoreLib/src/Resources/Strings.resx
+2
-2
src/libraries/System.Private.CoreLib/src/System/Text/Encoding.cs
...raries/System.Private.CoreLib/src/System/Text/Encoding.cs
+2
-2
未找到文件。
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
浏览文件 @
3058fa47
...
...
@@ -1021,10 +1021,10 @@
<value>
Must complete Convert() operation or call Encoder.Reset() before calling GetBytes() or GetByteCount(). Encoder '{0}' fallback '{1}'.
</value>
</data>
<data
name=
"Argument_EncodingConversionOverflowBytes"
xml:space=
"preserve"
>
<value>
The output byte buffer is too small to contain the encoded data, encoding
'{0}'
fallback '{1}'.
</value>
<value>
The output byte buffer is too small to contain the encoded data, encoding
codepage '{0}' and
fallback '{1}'.
</value>
</data>
<data
name=
"Argument_EncodingConversionOverflowChars"
xml:space=
"preserve"
>
<value>
The output char buffer is too small to contain the decoded characters, encoding
'{0}'
fallback '{1}'.
</value>
<value>
The output char buffer is too small to contain the decoded characters, encoding
codepage '{0}' and
fallback '{1}'.
</value>
</data>
<data
name=
"Argument_EncodingNotSupported"
xml:space=
"preserve"
>
<value>
'{0}' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
</value>
...
...
src/libraries/System.Private.CoreLib/src/System/Text/Encoding.cs
浏览文件 @
3058fa47
...
...
@@ -1140,7 +1140,7 @@ public static Stream CreateTranscodingStream(Stream innerStream, Encoding innerS
// Special message to include fallback type in case fallback's GetMaxCharCount is broken
// This happens if user has implemented an encoder fallback with a broken GetMaxCharCount
throw
new
ArgumentException
(
SR
.
Format
(
SR
.
Argument_EncodingConversionOverflowBytes
,
EncodingNam
e
,
EncoderFallback
.
GetType
()),
"bytes"
);
SR
.
Format
(
SR
.
Argument_EncodingConversionOverflowBytes
,
_codePag
e
,
EncoderFallback
.
GetType
()),
"bytes"
);
internal
void
ThrowBytesOverflow
(
EncoderNLS
?
encoder
,
bool
nothingEncoded
)
{
...
...
@@ -1168,7 +1168,7 @@ internal void ThrowBytesOverflow(EncoderNLS? encoder, bool nothingEncoded)
// Special message to include fallback type in case fallback's GetMaxCharCount is broken
// This happens if user has implemented a decoder fallback with a broken GetMaxCharCount
throw
new
ArgumentException
(
SR
.
Format
(
SR
.
Argument_EncodingConversionOverflowChars
,
EncodingNam
e
,
DecoderFallback
.
GetType
()),
"chars"
);
SR
.
Format
(
SR
.
Argument_EncodingConversionOverflowChars
,
_codePag
e
,
DecoderFallback
.
GetType
()),
"chars"
);
internal
void
ThrowCharsOverflow
(
DecoderNLS
?
decoder
,
bool
nothingDecoded
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录