@@ -1105,6 +1105,10 @@ msgid ""
1105
1105
"handler if *errors* is ``NULL``. *str* must end with a null character but "
1106
1106
"cannot contain embedded null characters."
1107
1107
msgstr ""
1108
+ "Android では UTF-8 の文字列を、それ以外のプラットフォームでは現在のロケールエンコーディングの文字列をデコードします。\n"
1109
+ "サポートされているエラーハンドラは ``\" strict\" `` および ``\" surrogateescape\" `` (:pep:`383`) です。\n"
1110
+ "*errors* が ``NULL`` の場合は、デコーダは ``\" strict\" `` エラーハンドラを使用します。\n"
1111
+ "*str* は終端が null 文字でなければならず、 null 文字を含めることはできません。"
1108
1112
1109
1113
#: ../../c-api/unicode.rst:770
1110
1114
msgid ""
@@ -1118,7 +1122,7 @@ msgstr ""
1118
1122
1119
1123
#: ../../c-api/unicode.rst:774 ../../c-api/unicode.rst:810
1120
1124
msgid "This function ignores the Python UTF-8 mode."
1121
- msgstr ""
1125
+ msgstr "この関数は Python の UTF-8 モードを無視します。 "
1122
1126
1123
1127
#: ../../c-api/unicode.rst:778 ../../c-api/unicode.rst:882
1124
1128
msgid "The :c:func:`Py_DecodeLocale` function."
@@ -1131,6 +1135,8 @@ msgid ""
1131
1135
":c:func:`Py_DecodeLocale` was used for the ``surrogateescape``, and the "
1132
1136
"current locale encoding was used for ``strict``."
1133
1137
msgstr ""
1138
+ "この関数は、 Android 以外では現在のロケールエンコーディングを ``surrogateescape`` エラーハンドラで使うようになりました。\n"
1139
+ "以前は、 :c:func:`Py_DecodeLocale` が ``surrogateescape`` で使われ、現在のロケールエンコーディングは ``strict`` で使われていました。"
1134
1140
1135
1141
#: ../../c-api/unicode.rst:791
1136
1142
msgid ""
@@ -1148,6 +1154,11 @@ msgid ""
1148
1154
"error handler if *errors* is ``NULL``. Return a :class:`bytes` object. "
1149
1155
"*unicode* cannot contain embedded null characters."
1150
1156
msgstr ""
1157
+ "Android では UTF-8 で、それ以外のプラットフォームでは現在のロケールエンコーディングで Unicode オブジェクトをエンコードします。\n"
1158
+ "サポートされているエラーハンドラは ``\" strict\" `` および ``\" surrogateescape\" `` (:pep:`383`) です。\n"
1159
+ "*errors* が ``NULL`` の場合は、エンコーダは ``\" strict\" `` エラーハンドラを使用します。\n"
1160
+ ":class:`bytes` オブジェクトを返します。\n"
1161
+ "*unicode* には null 文字を含められません。"
1151
1162
1152
1163
#: ../../c-api/unicode.rst:806
1153
1164
msgid ""
@@ -1169,6 +1180,8 @@ msgid ""
1169
1180
":c:func:`Py_EncodeLocale` was used for the ``surrogateescape``, and the "
1170
1181
"current locale encoding was used for ``strict``."
1171
1182
msgstr ""
1183
+ "この関数は、 Android 以外では現在のロケールエンコーディングを ``surrogateescape`` エラーハンドラで使うようになりました。\n"
1184
+ "以前は、 :c:func:`Py_EncodeLocale` が ``surrogateescape`` で使われ、現在のロケールエンコーディングは ``strict`` で使われていました。"
1172
1185
1173
1186
#: ../../c-api/unicode.rst:827
1174
1187
msgid "File System Encoding"
@@ -1183,6 +1196,8 @@ msgid ""
1183
1196
"during argument parsing, the ``\" O&\" `` converter should be used, passing "
1184
1197
":c:func:`PyUnicode_FSConverter` as the conversion function:"
1185
1198
msgstr ""
1199
+ "ファイル名や他の環境文字列のエンコードやデコードを行うには、 :c:data:`Py_FileSystemDefaultEncoding` をエンコーディングとして使い、 :c:data:`Py_FileSystemDefaultEncodeErrors` をエラーハンドラとして使うべきです (:pep:`383` および :pep:`529`)。\n"
1200
+ "引数の構文解析中にファイル名を :class:`bytes` にエンコードするには、 ``\" O&\" `` コンバーターを使い、 :c:func:`PyUnicode_FSConverter` を変換関数として渡すべきです:"
1186
1201
1187
1202
#: ../../c-api/unicode.rst:838
1188
1203
msgid ""
@@ -1192,6 +1207,9 @@ msgid ""
1192
1207
"is. *result* must be a :c:type:`PyBytesObject*` which must be released when "
1193
1208
"it is no longer used."
1194
1209
msgstr ""
1210
+ "ParseTuple コンバーター: :c:func:`PyUnicode_EncodeFSDefault` を使い -- 直接あるいは :class:`os.PathLike` インターフェースを通して取得した -- :class:`str` オブジェクトを :class:`bytes` へエンコードします;\n"
1211
+ ":class:`bytes` オブジェクトはそのまま出力されます。\n"
1212
+ "*result* は :c:type:`PyBytesObject*` でなければならず、使われなくなったときには解放されなければなりません。"
1195
1213
1196
1214
#: ../../c-api/unicode.rst:846 ../../c-api/unicode.rst:863
1197
1215
msgid "Accepts a :term:`path-like object`."
@@ -1203,6 +1221,8 @@ msgid ""
1203
1221
" converter should be used, passing :c:func:`PyUnicode_FSDecoder` as the "
1204
1222
"conversion function:"
1205
1223
msgstr ""
1224
+ "引数の構文解析中にファイル名を :class:`str` にデコードするには、 ``\" O&\" `` コンバーターを使い、 "
1225
+ ":c:func:`PyUnicode_FSDecoder` を変換関数として渡すのがよいです:"
1206
1226
1207
1227
#: ../../c-api/unicode.rst:855
1208
1228
msgid ""
@@ -1212,12 +1232,17 @@ msgid ""
1212
1232
"objects are output as-is. *result* must be a :c:type:`PyUnicodeObject*` "
1213
1233
"which must be released when it is no longer used."
1214
1234
msgstr ""
1235
+ "ParseTuple コンバーター: :c:func:`PyUnicode_DecodeFSDefaultAndSize` を使い -- 直接的あるいは間接的に :class:`os.PathLike` インターフェースを通して取得した -- :class:`bytes` オブジェクトを :class:`str` へエンコードします;\n"
1236
+ ":class:`bytes` オブジェクトはそのまま出力されます。\n"
1237
+ "*result* は :c:type:`PyUnicodeObject*` でなければならず、使われなくなったときには解放されなければなりません。"
1215
1238
1216
1239
#: ../../c-api/unicode.rst:869
1217
1240
msgid ""
1218
1241
"Decode a string using :c:data:`Py_FileSystemDefaultEncoding` and the "
1219
1242
":c:data:`Py_FileSystemDefaultEncodeErrors` error handler."
1220
1243
msgstr ""
1244
+ ":c:data:`Py_FileSystemDefaultEncoding` と "
1245
+ ":c:data:`Py_FileSystemDefaultEncodeErrors` エラーハンドラを使い、文字列をデコードします。"
1221
1246
1222
1247
#: ../../c-api/unicode.rst:872 ../../c-api/unicode.rst:893
1223
1248
#: ../../c-api/unicode.rst:909
@@ -1240,13 +1265,15 @@ msgstr ""
1240
1265
#: ../../c-api/unicode.rst:884 ../../c-api/unicode.rst:898
1241
1266
#: ../../c-api/unicode.rst:922
1242
1267
msgid "Use :c:data:`Py_FileSystemDefaultEncodeErrors` error handler."
1243
- msgstr ""
1268
+ msgstr ":c:data:`Py_FileSystemDefaultEncodeErrors` エラーハンドラを使うようになりました。 "
1244
1269
1245
1270
#: ../../c-api/unicode.rst:890
1246
1271
msgid ""
1247
1272
"Decode a null-terminated string using :c:data:`Py_FileSystemDefaultEncoding`"
1248
1273
" and the :c:data:`Py_FileSystemDefaultEncodeErrors` error handler."
1249
1274
msgstr ""
1275
+ ":c:data:`Py_FileSystemDefaultEncoding` と "
1276
+ ":c:data:`Py_FileSystemDefaultEncodeErrors` エラーハンドラを使い、 null 終端文字列をデコードします。"
1250
1277
1251
1278
#: ../../c-api/unicode.rst:896
1252
1279
msgid ""
@@ -1262,6 +1289,8 @@ msgid ""
1262
1289
":class:`bytes`. Note that the resulting :class:`bytes` object may contain "
1263
1290
"null bytes."
1264
1291
msgstr ""
1292
+ ":c:data:`Py_FileSystemDefaultEncoding` エラーハンドラで Unicode オブジェクトを :c:data:`Py_FileSystemDefaultEncoding` にエンコードし、 :class:`bytes` を返します。\n"
1293
+ "返される :class:`bytes` オブジェクトは null バイトを含んでいるかもしれないことに注意してください。"
1265
1294
1266
1295
#: ../../c-api/unicode.rst:912
1267
1296
msgid ""