[tahoe-lafs-trac-stream] [tahoe-lafs] #1298: WUI cannot handle non-ASCII node nicknames

tahoe-lafs trac at tahoe-lafs.org
Thu Dec 20 17:44:36 UTC 2012


#1298: WUI cannot handle non-ASCII node nicknames
-----------------------------------+------------------------------
     Reporter:  zooko              |      Owner:  davidsarah
         Type:  defect             |     Status:  assigned
     Priority:  major              |  Milestone:  1.10.0
    Component:  code-frontend-web  |    Version:  1.8.1
   Resolution:                     |   Keywords:  unicode wui easy
Launchpad Bug:                     |
-----------------------------------+------------------------------

Old description:

> I used a non-ascii character in the nickname of my node in tahoe.cfg:
> {{{
> /usr/lib/python2.6/dist-packages/nevow/rend.py, line 777 in string
> 775
> 776 def string(context, data):
> 777    return context.tag.clear()[str(data)]
> 778
> Locals
> data    u'Zooko\'s ec2 micro instance named "\u03b12"'
> context WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname
> mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro
> instance named "\u03b12"'})
> Globals
> string  <function string at 0xa0d95a4>
> data    <function data at 0xa0d95dc>
>
> <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode
> character u'\u03b1' in position 34: ordinal not in range(128)
> }}}

New description:

 I used a non-ascii character in the nickname of my node in tahoe.cfg:
 {{{
 /usr/lib/python2.6/dist-packages/nevow/rend.py, line 777 in string
 775
 776 def string(context, data):
 777    return context.tag.clear()[str(data)]
 778
 Locals
 data    u'Zooko\'s ec2 micro instance named "\u03b12"'
 context WovenContext(tag=Tag(u'td', attributes={u'class': u'nickname
 mine'}), remembrances={'nevow.inevow.IData': u'Zooko\'s ec2 micro instance
 named "\u03b12"'})
 Globals
 string  <function string at 0xa0d95a4>
 data    <function data at 0xa0d95dc>

 <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode
 character u'\u03b1' in position 34: ordinal not in range(128)
 }}}

--

Comment (by warner):

 looks trivial, if davidsarah doesn't land this by the weekend, I will.

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1298#comment:6>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list