snippets delete selected text with non-ascii characters

Bug #874134 reported by Michal Rudolf
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

$GEDIT_SELECTED_TEXT variable used in snippets does not work correctly for non-ascii characters.
For example, the standard LaTeX macro:

{\\${1:bf} $GEDIT_SELECTED_TEXT}

works correctly for 'alpha' text, giving:
{\bf alpha}

but for any utf-8 sequence, like 'głąb' deletes the selected text, producing
{\bf }

if gedit is run from the terminal, the following message appears:
Token class not supported: environment

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gedit 3.2.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic-pae 3.0.4
Uname: Linux 3.0.0-12-generic-pae i686
ApportVersion: 1.23-0ubuntu3
Architecture: i386
Date: Fri Oct 14 14:06:58 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
SourcePackage: gedit
UpgradeStatus: Upgraded to oneiric on 2011-10-13 (0 days ago)

Revision history for this message
Michal Rudolf (mrudolf) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in gedit (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gedit (Ubuntu):
status: New → Confirmed
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Can't reproduce in gedit 3.3.3, is this still an issue?

Revision history for this message
Michal Rudolf (mrudolf) wrote : Re: [Bug 874134] Re: snippets delete selected text with non-ascii characters

W dniu 09.02.2012 13:32, Vadim Rutkovsky pisze:
> Can't reproduce in gedit 3.3.3, is this still an issue?

Will check as soon as the package appears in Ubuntu.

--
Michal Rudolf

Revision history for this message
Vadim Rutkovsky (roignac) wrote :

This package is released in Ubuntu Precise, which will be released in the end of April.
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Michal Rudolf (mrudolf) wrote :

I can confirm it is fixed in 12.04 beta

Changed in gedit (Ubuntu):
status: Confirmed → Fix Released
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.