Skip to content

Instantly share code, notes, and snippets.

@ryenus
Created May 28, 2012 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryenus/2819224 to your computer and use it in GitHub Desktop.
Save ryenus/2819224 to your computer and use it in GitHub Desktop.
demo patch for JRUBY-6679
@echo off
rem cd /d e:/proj/oss/jruby
call :check_cp 437 775 850 852 855 857 860 861 862 863 864 865 866 869 1250 1251 1252 1253 1254 1255 1256 1257 1258
:check_cp
for %%e in (%*) do (
chcp %%e
for %%c in (ruby bin\jruby) do (
%%c -e "puts Encoding.default_external"
)
)
goto :eof
@ryenus
Copy link
Author

ryenus commented Aug 9, 2012

codepage  ruby          jruby
-------------------------------------
  437     IBM437        IBM437
  775     IBM775        IBM775
  850     CP850         CP850
  852     CP852         IBM852
  855     CP855         IBM855
  857     IBM857        IBM857
  860     IBM860        IBM860
  861     IBM861        IBM861
  862     IBM862        IBM862
  863     IBM863        IBM863
  864     IBM864        IBM864
  865     IBM865        IBM865
  866     IBM866        IBM866
  869     IBM869        IBM869
 1250     Windows-1250  Windows-1250
 1251     Windows-1251  Windows-1251
 1252     Windows-1252  Windows-1252
 1253     Windows-1253  Windows-1253
 1254     Windows-1254  Windows-1254
 1255     Windows-1255  Windows-1255
 1256     Windows-1256  Windows-1256
 1257     Windows-1257  Windows-1257
 1258     Windows-1258  Windows-1258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment