Skip to content

Commit

Permalink
enable ruby_w32_codepage on cygwin
Browse files Browse the repository at this point in the history
* debug.c, localeinit.c: enable ruby_w32_codepage on cygwin too.
  [ruby-core:81163] [Bug #13567]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed May 16, 2017
1 parent f033cfa commit 6ec37b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ ruby_debug_breakpoint(void)
# if RUBY_MSVCRT_VERSION >= 80
extern int ruby_w32_rtc_error;
# endif
#endif
#if defined _WIN32 || defined __CYGWIN__
#include <windows.h>
UINT ruby_w32_codepage;
#endif

Expand All @@ -135,6 +138,8 @@ set_debug_option(const char *str, int len, void *arg)
# if RUBY_MSVCRT_VERSION >= 80
SET_WHEN("rtc_error", ruby_w32_rtc_error, 1);
# endif
#endif
#if defined _WIN32 || defined __CYGWIN__
{
int ov;
size_t retlen;
Expand Down
2 changes: 0 additions & 2 deletions localeinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
#if defined _WIN32 || defined __CYGWIN__
#define SIZEOF_CP_NAME ((sizeof(UINT) * 8 / 3) + 4)
#define CP_FORMAT(buf, codepage) snprintf(buf, sizeof(buf), "CP%u", (codepage))
#endif

#if defined _WIN32
extern UINT ruby_w32_codepage;
#endif

Expand Down

0 comments on commit 6ec37b8

Please sign in to comment.