@@ -1181,6 +1181,8 @@ msgid ""
1181
1181
"during argument parsing, the ``\" O&\" `` converter should be used, passing "
1182
1182
":c:func:`PyUnicode_FSConverter` as the conversion function:"
1183
1183
msgstr ""
1184
+ "ファイル名や他の環境文字列のエンコードやデコードを行うには、 :c:data:`Py_FileSystemDefaultEncoding` をエンコーディングとして使い、 :c:data:`Py_FileSystemDefaultEncodeErrors` をエラーハンドラとして使うべきです (:pep:`383` および :pep:`529`)。\n"
1185
+ "引数の構文解析中にファイル名を :class:`bytes` にエンコードするには、 ``\" O&\" `` コンバーターを使い、 :c:func:`PyUnicode_FSConverter` を変換関数として渡すべきです:"
1184
1186
1185
1187
#: ../../c-api/unicode.rst:828
1186
1188
msgid ""
@@ -1190,6 +1192,9 @@ msgid ""
1190
1192
"is. *result* must be a :c:type:`PyBytesObject*` which must be released when "
1191
1193
"it is no longer used."
1192
1194
msgstr ""
1195
+ "ParseTuple コンバーター: :c:func:`PyUnicode_EncodeFSDefault` を使い -- 直接あるいは :class:`os.PathLike` インターフェースを通して取得した -- :class:`str` オブジェクトを :class:`bytes` へエンコードします;\n"
1196
+ ":class:`bytes` オブジェクトはそのまま出力されます。\n"
1197
+ "*result* は :c:type:`PyBytesObject*` でなければならず、使われなくなったときには解放されなければなりません。"
1193
1198
1194
1199
#: ../../c-api/unicode.rst:836 ../../c-api/unicode.rst:853
1195
1200
msgid "Accepts a :term:`path-like object`."
@@ -1201,6 +1206,8 @@ msgid ""
1201
1206
" converter should be used, passing :c:func:`PyUnicode_FSDecoder` as the "
1202
1207
"conversion function:"
1203
1208
msgstr ""
1209
+ "引数の構文解析中にファイル名を :class:`str` にデコードするには、 ``\" O&\" `` コンバーターを使い、 "
1210
+ ":c:func:`PyUnicode_FSDecoder` を変換関数として渡すのがよいです:"
1204
1211
1205
1212
#: ../../c-api/unicode.rst:845
1206
1213
msgid ""
@@ -1210,12 +1217,17 @@ msgid ""
1210
1217
"objects are output as-is. *result* must be a :c:type:`PyUnicodeObject*` "
1211
1218
"which must be released when it is no longer used."
1212
1219
msgstr ""
1220
+ "ParseTuple コンバーター: :c:func:`PyUnicode_DecodeFSDefaultAndSize` を使い -- 直接的あるいは間接的に :class:`os.PathLike` インターフェースを通して取得した -- :class:`bytes` オブジェクトを :class:`str` へエンコードします;\n"
1221
+ ":class:`bytes` オブジェクトはそのまま出力されます。\n"
1222
+ "*result* は :c:type:`PyUnicodeObject*` でなければならず、使われなくなったときには解放されなければなりません。"
1213
1223
1214
1224
#: ../../c-api/unicode.rst:859
1215
1225
msgid ""
1216
1226
"Decode a string using :c:data:`Py_FileSystemDefaultEncoding` and the "
1217
1227
":c:data:`Py_FileSystemDefaultEncodeErrors` error handler."
1218
1228
msgstr ""
1229
+ ":c:data:`Py_FileSystemDefaultEncoding` と "
1230
+ ":c:data:`Py_FileSystemDefaultEncodeErrors` エラーハンドラを使い、文字列をデコードします。"
1219
1231
1220
1232
#: ../../c-api/unicode.rst:862 ../../c-api/unicode.rst:883
1221
1233
#: ../../c-api/unicode.rst:899
@@ -1238,13 +1250,15 @@ msgstr ""
1238
1250
#: ../../c-api/unicode.rst:874 ../../c-api/unicode.rst:888
1239
1251
#: ../../c-api/unicode.rst:912
1240
1252
msgid "Use :c:data:`Py_FileSystemDefaultEncodeErrors` error handler."
1241
- msgstr ""
1253
+ msgstr ":c:data:`Py_FileSystemDefaultEncodeErrors` エラーハンドラを使うようになりました。 "
1242
1254
1243
1255
#: ../../c-api/unicode.rst:880
1244
1256
msgid ""
1245
1257
"Decode a null-terminated string using :c:data:`Py_FileSystemDefaultEncoding`"
1246
1258
" and the :c:data:`Py_FileSystemDefaultEncodeErrors` error handler."
1247
1259
msgstr ""
1260
+ ":c:data:`Py_FileSystemDefaultEncoding` と "
1261
+ ":c:data:`Py_FileSystemDefaultEncodeErrors` エラーハンドラを使い、 null 終端文字列をデコードします。"
1248
1262
1249
1263
#: ../../c-api/unicode.rst:886
1250
1264
msgid ""
@@ -1260,6 +1274,8 @@ msgid ""
1260
1274
":class:`bytes`. Note that the resulting :class:`bytes` object may contain "
1261
1275
"null bytes."
1262
1276
msgstr ""
1277
+ ":c:data:`Py_FileSystemDefaultEncoding` エラーハンドラで Unicode オブジェクトを :c:data:`Py_FileSystemDefaultEncoding` にエンコードし、 :class:`bytes` を返します。\n"
1278
+ "返される :class:`bytes` オブジェクトは null バイトを含んでいるかもしれないことに注意してください。"
1263
1279
1264
1280
#: ../../c-api/unicode.rst:902
1265
1281
msgid ""