Danek Duvall-san wrote (10/30/08 01:03 AM):
> Huh.  This still doesn't resolve my concerns about the inconsistency of the
> way the i18n is handled, and there's a bug in misc.py that I finally
> noticed.  I didn't have a chance to review this new code before you pushed
> it, and most of my concerns which I've raised several times over the past
> couple of days with Fujiwara hadn't been addressed yet, though I think we
> were making progress towards resolution.
> 
> FWIW, the bug is that the unit names in the table of units are all i18ned,
> but the comparison on line 394 is against a non-i18ned string, which will
> fail if the unit names are, in fact localized.  This can't have been
> tested.  In very large cases (> 2^70), bytes_to_str() will return None,
> causing a stack trace.
> 
> It probably should be uom on line 401 that gets i18ned.

OK, thanks for this point.
uom != "EB" is a problem. I noticed it with this mail just now however I'm not 
sure you raised it before.

Yes, either your suggestion(_("EB")) or adding N_() can resolve this. Let's fix 
it.

line 394
-                if uom != "EB" and bytes >= limit:
+                if uom != _("EB") and bytes >= limit:

Do you have other issues?

fujiwara

> 
> Danek
> 

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to