Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1135 (closed defect: invalid)

Opened 13 years ago

Last modified 12 years ago

[PATCH] fixes for lazystring __unicode__ and __str__ methods

Reported by: ksenia.marasanova@… Owned by: max
Priority: normal Milestone: 1.0.2
Component: TurboGears Version: 1.0b1
Severity: normal Keywords: i18n, lazystring
Cc: ksenia.marasanova@…

Description

This patch fixes the following problems:

1) __str__ function raises UnicodeDecodeError? when the value returned by self.eval() contains non-ascii characters

2) __unicode__ function raises "Decoding Unicode not supported" error when self.eval() returns unicode

I am not sure if this is the best way to fix it, it works for me. I hope i18n guru's can take a look at it.

Attachments

tg_gettext.patch Download (763 bytes) - added by ksenia.marasanova@… 13 years ago.

Change History

Changed 13 years ago by ksenia.marasanova@…

comment:1 Changed 13 years ago by max

  • Status changed from new to assigned
  • Owner changed from anonymous to max

Ksenia, can you please provide a test case where it causes you problems? I remember fixing this stuff and it is supposed to work with unicode correctly.

comment:2 Changed 13 years ago by jorge.vargas

  • Cc ksenia.marasanova@… added

comment:3 Changed 12 years ago by alberto

  • Milestone changed from 1.0b2 to 1.1

comment:4 Changed 12 years ago by jorge.vargas

  • Milestone changed from 1.1 to 1.0.2

I vote for invalid.

comment:5 Changed 12 years ago by alberto

  • Status changed from assigned to closed
  • Resolution set to invalid

Seems the ticket is invalid, closing as such.

Note: See TracTickets for help on using tickets.