[Issue 11283] [REG 2.064] assert in std/windows/syserror.d

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 17 02:11:42 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11283



--- Comment #5 from Jakob Ovrum <jakobovrum at gmail.com> 2013-10-17 02:11:40 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> Systeminfo dumps the following (which puzzles me actually)
> 
> System Locale:             en-gb;English (United Kingdom)
> Input Locale:              en-us;English (United States)

Does it work if SUBLANG_ENGLISH_US is changed to SUBLANG_ENGLISH_UK or
SUBLANG_DEFAULT on lines 90 and 92 in std/windows/syserror.d?

In order to actually have a unittest for sysErrorString at all, I added the
optional language parameters so a language combination that was always
available could be chosen; I thought en-US was such a combination. Maybe that
was a mistake. Maybe LANG_ENGLISH and SUBLANG_DEFAULT would always work?

Due to the same issue of missing language support by default, I had to remove
the tests that actually tested for non-ASCII support anyway, so the unittest
isn't as useful as it was originally intended. If no solution can be found, the
unittest could just be removed entirely.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list