joinlines plugin doesn't play nice with UTF-8

Bug #1043299 reported by Micah Gersten
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gedit-plugins (Ubuntu)
New
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/joinlines.py", line 79, in <lambda>
    lambda a, w: split_lines(w))],
  File "/usr/lib/gedit/plugins/joinlines.py", line 164, in split_lines
    forward_to_word_end(previous_word_end)
  File "/usr/lib/gedit/plugins/joinlines.py", line 218, in forward_to_word_end
    while ord(char) and (not (char in (' ', '\t', '\n', '\r'))):
TypeError: ord() expected a character, but string of length 2 found

I would expect it to work with any unicode character.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gedit-plugins 3.3.4-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
Uname: Linux 3.2.0-30-generic x86_64
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Wed Aug 29 08:01:25 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gedit-plugins
UpgradeStatus: Upgraded to precise on 2012-01-29 (212 days ago)

Revision history for this message
Micah Gersten (micahg) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.