Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e76089f

Browse files
[po] auto sync
1 parent dbb6739 commit e76089f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

c-api/sys.po

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ msgid ""
264264
"The function now uses the UTF-8 encoding on Windows if "
265265
":c:data:`Py_LegacyWindowsFSEncodingFlag` is zero;"
266266
msgstr ""
267+
"现在如果在 Windows 上 :c:data:`Py_LegacyWindowsFSEncodingFlag` 为零则此函数将使用 UTF-8 "
268+
"编码格式;"
267269

268270
#: ../../c-api/sys.rst:173
269271
msgid ""
@@ -272,37 +274,46 @@ msgid ""
272274
"<surrogateescape>`, surrogate characters in the range U+DC80..U+DCFF are "
273275
"converted to bytes 0x80..0xFF."
274276
msgstr ""
277+
"将一个由宽字符组成的字符串编码为 :term:`filesystem encoding and error handler`。 如果错误处理句柄为 "
278+
":ref:`surrogateescape 错误处理句柄 <surrogateescape>`,则在 U+DC80..U+DCFF "
279+
"范围内的代理字符会被转换为字节值 0x80..0xFF。"
275280

276281
#: ../../c-api/sys.rst:178
277282
msgid ""
278283
"Return a pointer to a newly allocated byte string, use :c:func:`PyMem_Free` "
279284
"to free the memory. Return ``NULL`` on encoding error or memory allocation "
280285
"error."
281286
msgstr ""
287+
"返回一个指向新分配的字节串的指针,使用 :c:func:`PyMem_Free` 来释放内存。 当发生编码错误或内存分配错误时返回 ``NULL``。"
282288

283289
#: ../../c-api/sys.rst:182
284290
msgid ""
285291
"If error_pos is not ``NULL``, ``*error_pos`` is set to ``(size_t)-1`` on "
286292
"success, or set to the index of the invalid character on encoding error."
287293
msgstr ""
294+
"如果 error_pos 不为 ``NULL``,则成功时会将 ``*error_pos`` 设为 "
295+
"``(size_t)-1``,或是在发生编码错误时设为无效字符的索引号。"
288296

289297
#: ../../c-api/sys.rst:189
290298
msgid ""
291299
"Use the :c:func:`Py_DecodeLocale` function to decode the bytes string back "
292300
"to a wide character string."
293-
msgstr ""
301+
msgstr "请使用 :c:func:`Py_DecodeLocale` 函数来将字节串解码回由宽字符组成的字符串。"
294302

295303
#: ../../c-api/sys.rst:199
296304
msgid ""
297305
"The :c:func:`PyUnicode_EncodeFSDefault` and :c:func:`PyUnicode_EncodeLocale`"
298306
" functions."
299307
msgstr ""
308+
":c:func:`PyUnicode_EncodeFSDefault` 和 :c:func:`PyUnicode_EncodeLocale` 函数。"
300309

301310
#: ../../c-api/sys.rst:208
302311
msgid ""
303312
"The function now uses the UTF-8 encoding on Windows if "
304313
":c:data:`Py_LegacyWindowsFSEncodingFlag` is zero."
305314
msgstr ""
315+
"现在如果在 Windows 上 :c:data:`Py_LegacyWindowsFSEncodingFlag` 为零则此函数将使用 UTF-8 "
316+
"编码格式。"
306317

307318
#: ../../c-api/sys.rst:216
308319
msgid "System Functions"

0 commit comments

Comments
 (0)