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

Kornél Pál kornelpal at hotmail.com
Fri Jun 10 09:47:57 EDT 2005


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
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.

Kornél
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StackTracePatch.diff
Type: application/octet-stream
Size: 4004 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050610/c480b4d7/attachment.obj 


More information about the Mono-devel-list mailing list