On Feb 11, 6:00 pm, "Edward K. Ream" <[email protected]> wrote:
> Thanks for the feedback.  It's not clear what is going on here. This
> could be a bug in Leo itself, a bug in the zip library, or a bug in
> Leo's unit testing & scripting logic.
>
> If the bug is real, it would presumably affect people with non-ascii
> characters in file names.  We have had no such reports for a long
> time.

I already have more feedback for you :-)
I was thinking now what I could "do wrong" on purpose, from an users'
perspective, in order to confuse leo. And I've got a result in no
time.
I've saved an outline using Russian letters (koi8-r encoding, which is
my locale). It saved fine. I've closed leo, restarted it and tried to
open the outline in question. This is what I've got printed in leo's
log pane:

reading: /tmp/1/leo/leo-current/ффф.leo
unexpected exception writing /home/shadow/.leo/.leoRecentFiles.txt
Traceback (most recent call last):
  File "/tmp/1/leo/leo-current/leo/core/leoConfig.py", line 2086, in
writeRecentFilesFileHelper
    theFile.write(s)
UnicodeEncodeError: 'ascii' codec can't encode characters in position
23-25: ordinal not in range(128)
unexpected exception writing /home/shadow/.leo/.leoRecentFiles.txt
Traceback (most recent call last):
  File "/tmp/1/leo/leo-current/leo/core/leoConfig.py", line 2086, in
writeRecentFilesFileHelper
    theFile.write(s)
UnicodeEncodeError: 'ascii' codec can't encode characters in position
23-25: ordinal not in range(128)

This doesn't affect me, because I follow a rock-solid rule of avoiding
non-ascii non-English symbols in filenames at any costs.
Also I think that the amount of leo users that could eventually be
impacted by this is reasonably low. Assuming an utf8 locale by default
is a good default policy. My Linux distribution of choice (Slackware)
does not use utf locales by default yet, and I believe the developers
do it for real good reasons. But it's very possible that this will
change in the future.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to