#3058: Bug of the wiki compiler
-----------------------------------+----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  cboos
     Type:  defect                 |       Status:  new  
 Priority:  highest                |    Milestone:  0.9.6
Component:  general                |      Version:  0.9.5
 Severity:  normal                 |   Resolution:       
 Keywords:  unicode                |  
-----------------------------------+----------------------------------------
Comment (by cboos):

 Does anybody have an idea why, on the command line, I have this:
 {{{
 >>> s = 'Indice di Priorit\xc3\xa0'
 >>> s.strip()
 'Indice di Priorit\xc3\xa0'
 }}}
 while in Trac, the same strip() operation, on the same input, returns
 `'Indice di Priorit\xc3'` ?

 i.e.
 {{{
 #!diff
 Index: formatter.py
 ===================================================================
 --- formatter.py        (revision 3213)
 +++ formatter.py        (working copy)
 @@ -657,5 +660,8 @@
          self.out = out
          self._open_tags = []

 +        print 'oneliner', type(text), `text`
 +        print 'oneliner.strip', `text.strip()`
 +
          # Simplify code blocks
          in_code_block = 0
 }}}
 shows:
 {{{
 oneliner <type 'str'> 'Indice di Priorit\xc3\xa0'
 oneliner.strip 'Indice di Priorit\xc3'
 }}}

 ?

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3058>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to