You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ModuleBuilder.GetType does not work with ignore case with certain unicode chars on Unix #18231
The following test passes on Windows, but fails on non-Windows platforms, discovered in dotnet/corefx#10532
[Fact]publicvoidTest(){AssemblyBuilderassemblyBuilder=AssemblyBuilder.DefineDynamicAssembly(newAssemblyName("AssemblyName"),AssemblyBuilderAccess.Run);ModuleBuildermoduleBuilder=assemblyBuilder.DefineDynamicModule("ModuleName");TypeBuildertype=moduleBuilder.DefineType("\uD800\uDC00");TypeInfocreatedType=type.CreateTypeInfo();moduleBuilder.GetType("\uD800\uDC00",false,false);// Works on all platformsmoduleBuilder.GetType("\uD800\uDC00",true,false);// Works on all platformsmoduleBuilder.GetType("\uD800\uDC00",true,true);// Throws TypeLoadException on UnixmoduleBuilder.GetType("\uD800\uDC00".ToLowerInvariant(),true,true);// Throws TypeLoadException on UnixmoduleBuilder.GetType("\uD800\uDC00".ToUpperInvariant(),true,true);// Throws TypeLoadException on Unix}
changed the title [-]ModuleBuilder.GetType does not work with ignore case with certain unicode chars on XPlat[/-][+]ModuleBuilder.GetType does not work with ignore case with certain unicode chars on Unix[/+]on Aug 19, 2016
Activity
[-]ModuleBuilder.GetType does not work with ignore case with certain unicode chars on XPlat[/-][+]ModuleBuilder.GetType does not work with ignore case with certain unicode chars on Unix[/+]stephentoub commentedon Aug 19, 2016
cc: @tarekgh, @ellismg
tarekgh commentedon Sep 1, 2016
@atsushikan please have a look and if you see the issue is globalization I will help with it. Thanks.
tarekgh commentedon Sep 23, 2016
moved it to 1.2 as this is rare scenario to support surrogate pairs in types names
karelz commentedon Feb 28, 2017
Next step: Find out (under debugger) where we invoke globalization and get the wrong answer (that's where it is likely going to be).
KristinXie1 commentedon Mar 6, 2017
https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Emit/tests/Utilities.cs#L102
4 remaining items