* win32/win32.c (rb_w32_strerror): get English message first, instead
of system default. see [ruby-dev:42358]. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cba4cda71d
commit
fb44f02aa1
@ -1,3 +1,9 @@
|
||||
Tue Oct 12 16:04:37 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_strerror): get English message first, instead
|
||||
of system default. see [ruby-dev:42358].
|
||||
[experimental]
|
||||
|
||||
Tue Oct 12 15:52:35 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_strerror): unmap some range of errno for
|
||||
|
@ -2214,6 +2214,10 @@ rb_w32_strerror(int e)
|
||||
}
|
||||
#endif
|
||||
if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS, &source, e,
|
||||
MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
|
||||
buffer, sizeof(buffer), NULL) == 0 &&
|
||||
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS, &source, e, 0,
|
||||
buffer, sizeof(buffer), NULL) == 0)
|
||||
strlcpy(buffer, "Unknown Error", sizeof(buffer));
|
||||
|
Loading…
x
Reference in New Issue
Block a user