2010/2/11 Edward K. Ream <[email protected]>:

>>  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)
>
> Thanks for this.  I'll look into it immediately, and verify there
> there is a unit test covering this.

There wasn't.  Now there is, and it fails:

fn = g.u('ффф.leo')
g.app.config.writeRecentFilesFileHelper(fn)

I'll  fix this immediately if I can do so safely.

Edward

P.S. I have just made an inventory of all dubious/erroneous usages of
g.unitTesting in all of Leo's core.  There were hundreds of instances
to check.

The only erroneous usages was, as you might have guessed, in
writeRecentFiles, which simply does nothing when unit testing!  I'll
attempt to remove the hack.  I found more than a dozen dubious usages,
but nothing that seems blatantly wrong.

EKR

-- 
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