Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textwrap wordsep_re Unicode #48413

Closed
skirsche mannequin opened this issue Oct 21, 2008 · 3 comments
Closed

textwrap wordsep_re Unicode #48413

skirsche mannequin opened this issue Oct 21, 2008 · 3 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@skirsche
Copy link
Mannequin

skirsche mannequin commented Oct 21, 2008

BPO 4163
Nosy @pitrou
Files
  • textwrap-umlauts.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2008-12-13.23:22:01.598>
    created_at = <Date 2008-10-21.20:05:22.476>
    labels = ['type-bug', 'library']
    title = 'textwrap wordsep_re Unicode'
    updated_at = <Date 2008-12-13.23:22:01.596>
    user = 'https://bugs.python.org/skirsche'

    bugs.python.org fields:

    activity = <Date 2008-12-13.23:22:01.596>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-12-13.23:22:01.598>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2008-10-21.20:05:22.476>
    creator = 'skirsche'
    dependencies = []
    files = ['11848']
    hgrepos = []
    issue_num = 4163
    keywords = ['patch']
    message_count = 3.0
    messages = ['75037', '75110', '77768']
    nosy_count = 2.0
    nosy_names = ['pitrou', 'skirsche']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue4163'
    versions = ['Python 3.1', 'Python 2.7']

    @skirsche
    Copy link
    Mannequin Author

    skirsche mannequin commented Oct 21, 2008

    The attached patch makes textwrap work with strings containing dashes
    and Unicode alphabetic characters. In addition, it fixes the test case
    for bpo-1149508, which no longer failed after temporarily undoing the
    corresponding change.

    Example 1:
    print textwrap.fill(u'Die Empfänger-Auswahl', 13)

    Output without patch:
    Die Empf
    änger-Auswahl

    With patch:
    Die
    Empfänger-
    Auswahl

    Example 2:
    print textwrap.fill(u'aa ää-ää', 7)

    Output without patch:
    aa
    ää-ää

    With patch:
    aa ää-
    ää

    @skirsche skirsche mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Oct 21, 2008
    @pitrou
    Copy link
    Member

    pitrou commented Oct 22, 2008

    I think it is an useful change indeed. Since it changes behaviour, I'm
    not sure it's ok for 2.6.1 or 2.5.3 though.

    @pitrou
    Copy link
    Member

    pitrou commented Dec 13, 2008

    Fixed in r67746 and r67747. Thanks for the patch!

    @pitrou pitrou closed this as completed Dec 13, 2008
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant