@@ -1181,6 +1181,8 @@ msgid ""
11811181"during argument parsing, the ``\" O&\" `` converter should be used, passing "
11821182":c:func:`PyUnicode_FSConverter` as the conversion function:"
11831183msgstr ""
1184+ "ファイル名や他の環境文字列のエンコードやデコードを行うには、 :c:data:`Py_FileSystemDefaultEncoding` をエンコーディングとして使い、 :c:data:`Py_FileSystemDefaultEncodeErrors` をエラーハンドラとして使うべきです (:pep:`383` および :pep:`529`)。\n"
1185+ "引数の構文解析中にファイル名を :class:`bytes` にエンコードするには、 ``\" O&\" `` コンバーターを使い、 :c:func:`PyUnicode_FSConverter` を変換関数として渡すべきです:"
11841186
11851187#: ../../c-api/unicode.rst:828
11861188msgid ""
@@ -1190,6 +1192,9 @@ msgid ""
11901192"is. *result* must be a :c:type:`PyBytesObject*` which must be released when "
11911193"it is no longer used."
11921194msgstr ""
1195+ "ParseTuple コンバーター: :c:func:`PyUnicode_EncodeFSDefault` を使い -- 直接あるいは :class:`os.PathLike` インターフェースを通して取得した -- :class:`str` オブジェクトを :class:`bytes` へエンコードします;\n"
1196+ ":class:`bytes` オブジェクトはそのまま出力されます。\n"
1197+ "*result* は :c:type:`PyBytesObject*` でなければならず、使われなくなったときには解放されなければなりません。"
11931198
11941199#: ../../c-api/unicode.rst:836 ../../c-api/unicode.rst:853
11951200msgid "Accepts a :term:`path-like object`."
@@ -1201,6 +1206,8 @@ msgid ""
12011206" converter should be used, passing :c:func:`PyUnicode_FSDecoder` as the "
12021207"conversion function:"
12031208msgstr ""
1209+ "引数の構文解析中にファイル名を :class:`str` にデコードするには、 ``\" O&\" `` コンバーターを使い、 "
1210+ ":c:func:`PyUnicode_FSDecoder` を変換関数として渡すのがよいです:"
12041211
12051212#: ../../c-api/unicode.rst:845
12061213msgid ""
@@ -1210,12 +1217,17 @@ msgid ""
12101217"objects are output as-is. *result* must be a :c:type:`PyUnicodeObject*` "
12111218"which must be released when it is no longer used."
12121219msgstr ""
1220+ "ParseTuple コンバーター: :c:func:`PyUnicode_DecodeFSDefaultAndSize` を使い -- 直接的あるいは間接的に :class:`os.PathLike` インターフェースを通して取得した -- :class:`bytes` オブジェクトを :class:`str` へエンコードします;\n"
1221+ ":class:`bytes` オブジェクトはそのまま出力されます。\n"
1222+ "*result* は :c:type:`PyUnicodeObject*` でなければならず、使われなくなったときには解放されなければなりません。"
12131223
12141224#: ../../c-api/unicode.rst:859
12151225msgid ""
12161226"Decode a string using :c:data:`Py_FileSystemDefaultEncoding` and the "
12171227":c:data:`Py_FileSystemDefaultEncodeErrors` error handler."
12181228msgstr ""
1229+ ":c:data:`Py_FileSystemDefaultEncoding` と "
1230+ ":c:data:`Py_FileSystemDefaultEncodeErrors` エラーハンドラを使い、文字列をデコードします。"
12191231
12201232#: ../../c-api/unicode.rst:862 ../../c-api/unicode.rst:883
12211233#: ../../c-api/unicode.rst:899
@@ -1238,13 +1250,15 @@ msgstr ""
12381250#: ../../c-api/unicode.rst:874 ../../c-api/unicode.rst:888
12391251#: ../../c-api/unicode.rst:912
12401252msgid "Use :c:data:`Py_FileSystemDefaultEncodeErrors` error handler."
1241- msgstr ""
1253+ msgstr ":c:data:`Py_FileSystemDefaultEncodeErrors` エラーハンドラを使うようになりました。 "
12421254
12431255#: ../../c-api/unicode.rst:880
12441256msgid ""
12451257"Decode a null-terminated string using :c:data:`Py_FileSystemDefaultEncoding`"
12461258" and the :c:data:`Py_FileSystemDefaultEncodeErrors` error handler."
12471259msgstr ""
1260+ ":c:data:`Py_FileSystemDefaultEncoding` と "
1261+ ":c:data:`Py_FileSystemDefaultEncodeErrors` エラーハンドラを使い、 null 終端文字列をデコードします。"
12481262
12491263#: ../../c-api/unicode.rst:886
12501264msgid ""
@@ -1260,6 +1274,8 @@ msgid ""
12601274":class:`bytes`. Note that the resulting :class:`bytes` object may contain "
12611275"null bytes."
12621276msgstr ""
1277+ ":c:data:`Py_FileSystemDefaultEncoding` エラーハンドラで Unicode オブジェクトを :c:data:`Py_FileSystemDefaultEncoding` にエンコードし、 :class:`bytes` を返します。\n"
1278+ "返される :class:`bytes` オブジェクトは null バイトを含んでいるかもしれないことに注意してください。"
12631279
12641280#: ../../c-api/unicode.rst:902
12651281msgid ""
0 commit comments