Repository navigation
TypeSystemTests fails on Spanish culture systems #1691
Description
Hi there,
I got the following error while building debug version of corert project on my Windows machine.
I think it has to do with the fact that I'm running Windows with the system locale in Spanish (decimal symbol here is "," instead of ".")
Here is the failure test detail stripped from the "build.cmd Debug" console output:
TypeSystemTests.ILDisassemblerTests.TestGenericNameFormatting [FAIL]
Assert.Equal() Failure
Ôåô (pos 23)
Expected: ┬À┬À┬À0043: ldc.r8 3.14
Actual: ┬À┬À┬À0043: ldc.r8 3,14
Ôåæ (pos 23)
Stack Trace:
D:\dev\corert\src\ILCompiler.TypeSystem\tests\ILDisassemblerTests.cs(66,0): at TypeSystemTests.ILDisassemblerTests.TestGenericNameFormatting()
I'm also providing my systeminfo.exe output:
Host Name: JACANOPLAINPC
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.10586 N/A Build 10586
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: jacano
Registered Organization:
Product ID: 00330-80105-47809-AA997
Original Install Date: 03/05/2016, 14:02:52
System Boot Time: 18/08/2016, 8:23:38
System Manufacturer: System manufacturer
System Model: System Product Name
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 58 Stepping 9 GenuineIntel ~3400 Mhz
BIOS Version: American Megatrends Inc. 0212, 17/02/2013
Windows Directory: C:\Windows
System Directory: C:\Windows\system32
Boot Device: \Device\HarddiskVolume2
System Locale: es;Spanish (International Sort)
Input Locale: es;Spanish (Traditional Sort)
Time Zone: (UTC+01:00) Brussels, Copenhagen, Madrid, Paris
Total Physical Memory: 16.227 MB
Available Physical Memory: 4.252 MB
Virtual Memory: Max Size: 18.659 MB
Virtual Memory: Available: 2.676 MB
Virtual Memory: In Use: 15.983 MB
Page File Location(s): C:\pagefile.sys
Domain: WORKGROUP
Logon Server: \\JACANOPLAINPC
Hotfix(s): 9 Hotfix(s) Installed.
[01]: KB3116278
[02]: KB3135173
[03]: KB3136561
[04]: KB3140741
[05]: KB3149135
[06]: KB3172729
[07]: KB3173428
[08]: KB3174060
[09]: KB3176493
Network Card(s): 4 NIC(s) Installed.
[01]: Realtek PCIe GBE Family Controller
Connection Name: Ethernet
DHCP Enabled: Yes
DHCP Server: 10.4.0.20
IP address(es)
[01]: 10.4.1.35
[02]: fe80::acae:5c48:3a83:fe6b
[02]: VirtualBox Host-Only Ethernet Adapter
Connection Name: VirtualBox Host-Only Network
DHCP Enabled: No
IP address(es)
[01]: 192.168.127.2
[02]: fe80::1c2e:8c9e:4c7:291b
[03]: VMware Virtual Ethernet Adapter for VMnet1
Connection Name: VMware Network Adapter VMnet1
DHCP Enabled: Yes
DHCP Server: 192.168.192.254
IP address(es)
[01]: 192.168.192.1
[02]: fe80::a5af:ee34:f329:5cd3
[04]: VMware Virtual Ethernet Adapter for VMnet8
Connection Name: VMware Network Adapter VMnet8
DHCP Enabled: Yes
DHCP Server: 192.168.237.254
IP address(es)
[01]: 192.168.237.1
[02]: fe80::9990:7ed9:896c:9a89
Hyper-V Requirements: VM Monitor Mode Extensions: Yes
Virtualization Enabled In Firmware: Yes
Second Level Address Translation: Yes
Data Execution Prevention Available: Yes
Steps to repro: Just change your system locale to Spanish and build the project.
Didn't have much time to analyze but I think the problem is inside the GetNextInstruction method of the Internal.IL.ILDisassember struct helper.
The "decodedInstruction" StringBuilder is being populated making use of the "public Append(double value)" method, that seems to be culture aware.
I hope this help :)
Activity
[-]TypeSystemTests fails on [/-][+]TypeSystemTests fails on Spanish culture systems[/+]jkotas commentedon Aug 22, 2016
@jacano Thank you for reporting this issue
jacano commentedon Aug 22, 2016
@jkotas My pleasure, keep up the good work!!