Author: mtredinnick
Date: 2007-04-04 08:25:53 -0500 (Wed, 04 Apr 2007)
New Revision: 4923
Modified:
django/trunk/django/utils/encoding.py
Log:
Added a FIXME that I forgot to include earlier.
Modified: django/trunk/django/utils/encoding.py
===================================================================
--- django/trunk/django/utils/encoding.py 2007-04-04 11:40:08 UTC (rev
4922)
+++ django/trunk/django/utils/encoding.py 2007-04-04 13:25:53 UTC (rev
4923)
@@ -6,6 +6,10 @@
# The input is the result of a gettext_lazy() call, or similar. It will
# already be encoded in DEFAULT_CHARSET on evaluation and we don't want
# to evaluate it until render time.
+ # FIXME: This isn't totally consistent, because it eventually returns a
+ # bytestring rather than a unicode object. It works wherever we use
+ # smart_unicode() at the moment. Fixing this requires work in the
+ # i18n internals.
return s
if not isinstance(s, basestring,):
if hasattr(s, '__unicode__'):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---