Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue31825

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:bytes decode raises OverflowError desipte errors='ignore'
Type:behaviorStage:resolved
Components:Interpreter Core, UnicodeVersions:Python 3.7, Python 3.6
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: serhiy.storchakaNosy List: Naitbit, eric.smith, ezio.melotti, serhiy.storchaka, vstinner
Priority:normalKeywords:patch

Created on2017-10-20 09:58 byNaitbit, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 4058mergedserhiy.storchaka,2017-10-20 11:10
PR 4059mergedpython-dev,2017-10-20 14:08
Messages (4)
msg304651 -(view)Author: Sebastian Kacprzak (Naitbit)Date: 2017-10-20 09:58
In Python 3.5 and earlier (tested 3.5.3 and 2.7.13)b'\\\xfa'.decode('unicode-escape', errors='ignore')did return '\\ú'but in Python 3.6 it raises OverflowError: decoding with 'unicode-escape' codec failed (OverflowError: character argument not in range(0x110000))Python 3.6.1 (default, Sep  7 2017, 16:36:03) [GCC 6.3.0 20170406] on linux
msg304656 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2017-10-20 14:08
New changeset56cb465cc93dcb35aaf7266ca3dbe2dcff1fac5f by Serhiy Storchaka in branch 'master':bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (#4058)https://github.com/python/cpython/commit/56cb465cc93dcb35aaf7266ca3dbe2dcff1fac5f
msg304658 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2017-10-20 14:41
New changeset1e78ed6825701029aa45a68f9e62dd3bb8d4e928 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6':bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (GH-4058) (#4059)https://github.com/python/cpython/commit/1e78ed6825701029aa45a68f9e62dd3bb8d4e928
msg304659 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2017-10-20 14:42
Thank you for your report Sebastian.
History
DateUserActionArgs
2022-04-11 14:58:53adminsetgithub: 76006
2017-10-20 14:42:35serhiy.storchakasetstatus: open -> closed
resolution: fixed
messages: +msg304659

stage: patch review -> resolved
2017-10-20 14:41:31serhiy.storchakasetmessages: +msg304658
2017-10-20 14:08:29python-devsetpull_requests: +pull_request4028
2017-10-20 14:08:21serhiy.storchakasetmessages: +msg304656
2017-10-20 11:10:59serhiy.storchakasetkeywords: +patch
stage: patch review
pull_requests: +pull_request4027
2017-10-20 10:51:03serhiy.storchakasetversions: + Python 3.7
nosy: +serhiy.storchaka,ezio.melotti,eric.smith,vstinner

assignee:serhiy.storchaka
components: + Interpreter Core, Unicode
type: behavior
2017-10-20 09:58:20Naitbitcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp