Prints to tabs in the Log Pane are UTF-8 encoded

Bug #971166 reported by SegundoBob
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
leo-editor
Fix Released
Medium
Edward K. Ream

Bug Description

The Log tab in the Log pane is NOT UTF-8 encoded.

But the two print commands I have tried (print-settings and print-plugins-info), and I expect all print commands, produce tabs in the Log pane that contain UTF-8 encoded characters. This is a problem because it makes it very inconvenient to copy the tab contents (via copy/paste) to an editor for closer examination. In particular, the problem is that all blanks are C2 A0, which is the UTF-8 encoding for Unicode code point U+00A0 (NO-BREAK SPACE); and all line terminators are E2 80 A8, which is the UTF-8 encoding for Unicode code point U+2028 (LINE SEPARATOR).

Most editors don't let you select the encoding of the file you want to edit. Emacs does allow me to set the encoding to UTF-8, but it still does not correctly interpret UTF-8 data I copy from the Log pane. This can probably be made to work, but I have not made it work.

Test System:
Leo-Editor Rev 5220

Multiple OSes:
openSUSE 12.1 with XFCE desktop
Ubuntu 11.10 with Fluxbox window manager
Windows XP

Leo Log Window
Leo 4.10 final, build 5220, 2012-03-30 12:49:20
Python 2.7.2, qt version 4.7.4
linux2
setting leoID from os.getenv('USER'): 'bob02'
load dir: /home/ldi/bzr/LeoLatest/leo/core
global config dir: /home/ldi/bzr/LeoLatest/leo/config
home dir: /home/bob02
reading settings in /home/ldi/bzr/LeoLatest/leo/config/leoSettings.leo
reading settings in /home/bob02/.leo/myLeoSettings.leo
reading settings in /media/datw1/BobH/1/Leo/Leo.leo
reading: /media/datw1/BobH/1/Leo/Leo.leo

Revision history for this message
Edward K. Ream (edreamleo) wrote : Re: [Bug 971166] [NEW] Prints to tabs in the Log Pane are UTF-8 encoded

On Sun, Apr 1, 2012 at 6:38 PM, SegundoBob <email address hidden> wrote:
> Public bug reported:
>
> The Log tab in the Log pane is NOT UTF-8 encoded.

Thanks for this report. I'll fix it soon, probably today.

Edward

Changed in leo-editor:
importance: Undecided → Low
assignee: nobody → Edward K. Ream (edreamleo)
milestone: none → 4.10.1-b1
Changed in leo-editor:
importance: Low → Medium
Revision history for this message
Edward K. Ream (edreamleo) wrote :

This bug was really the same as bug 979142: Node body contents displayed is unpredictably incorrect.

See that bug for a full discussion of the causes and fixes.

Changed in leo-editor:
status: New → Fix Released
Revision history for this message
SegundoBob (bhossley) wrote :

Thanks. The fix works for me

Test System:
openSUSE 12.1, XFCE Desktop 4.8.3
Leo Log Window
Leo 4.10 final, build 5248, 2012-04-12 09:29:11
Python 2.7.2, qt version 4.7.4
linux2
setting leoID from os.getenv('USER'): 'bob02'
load dir: /home/ldi/bzr/LeoLatest/leo/core
global config dir: /home/ldi/bzr/LeoLatest/leo/config
home dir: /home/bob02
reading settings in /home/ldi/bzr/LeoLatest/leo/config/leoSettings.leo
reading settings in /home/bob02/.leo/myLeoSettings.leo
reading settings in /media/datw1/BobH/1/Leo/gtd.leo
reading: /media/datw1/BobH/1/Leo/gtd.leo

Revision history for this message
Edward K. Ream (edreamleo) wrote : Re: [Bug 971166] Re: Prints to tabs in the Log Pane are UTF-8 encoded

On Thu, Apr 12, 2012 at 1:55 PM, SegundoBob <email address hidden> wrote:
> Thanks.  The fix works for me

You're welcome. Thanks for the confirmation.

Edward

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.