#3018: trac-admin hotcopy broken, unicode related problem
----------------------------------------+-----------------------------------
 Reporter:  [EMAIL PROTECTED]               |        Owner:  cboos
     Type:  defect                      |       Status:  new  
 Priority:  normal                      |    Milestone:  0.10 
Component:  trac-admin                  |      Version:  devel
 Severity:  major                       |   Resolution:       
 Keywords:  trac-admin unicode hotcopy  |  
----------------------------------------+-----------------------------------
Changes (by cboos):

  * priority:  low => normal
  * owner:  daniel => cboos
  * milestone:  => 0.10

Comment:

 Probably `sys.stdin.encoding` which is `None` for you.

 Can you try this patch?
 {{{
 Index: admin.py
 ===================================================================
 --- admin.py    (revision 3118)
 +++ admin.py    (working copy)
 @@ -90,7 +90,7 @@
          """`line` may be a `str` or an `unicode` object"""
          try:
              if isinstance(line, str):
 -                line = unicode(line, sys.stdin.encoding)
 +                line = util.to_unicode(line, sys.stdin.encoding)
              rv = cmd.Cmd.onecmd(self, line) or 0
          except SystemExit:
              raise
 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3018>
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