[Mono-devel-list] [PATCH] StackTraces - remove some localization

Gonzalo Paniagua Javier gonzalo at ximian.com
Sat Jun 11 01:32:43 EDT 2005


On Fri, 2005-06-10 at 15:47 +0200, Kornél Pál wrote:
> Hi,
> 
> First of all .NET Framework does not localize these stack trace outputs.
> 
> Furthermore Exception.StackTrace is used by the runtime to print stack trace
> when there is an error. As the localization framework (Locale,
> ResourceManager, ResourceSet, ...) it self can throw exceptions no exception

Writing to the console can also throw an exception so... should we not
print the exception? ;-)

> will be displayed when exception occurs in these classes when used to
> localize the texts of stack traces that are representing exceptions caused
> by them. This does not cause infinite loop, but no stack trace will be
> displayed when the runtime terminates because of an unhandled exception.
> 
> GetTexts that I leaved in these classes can be used safely and these texts
> are localized by .NET Framework as well.
> 
> Note that I discovered this weaknes while workin on new unified Locale
> classes for the whole class library. And they cannot be used until this
> patch is applied.

So I was 2 hours out and there was a debate on changing the I18N rules?
Quite some time ago, it was decided to be that way. If we're changing
that I'd like some debate action here.

-Gonzalo





More information about the Mono-devel-list mailing list