# Marshal.load fails on LANG=ja\_JP.EUC-JP

**URL:** <https://www.ruby-forum.com/t/marshal-load-fails-on-lang-ja-jp-euc-jp/126733>\
**Category:** Development\
**Created:** [January 21, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/marshal-load-fails-on-lang-ja-jp-euc-jp/126733 "2008-01-21T19:37:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanaka\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Post date:** [January 21, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/marshal-load-fails-on-lang-ja-jp-euc-jp/126733/1 "2008-01-21T19:37:16Z")

</div>

e$B0J2\<$N$h$&$K!"e(B56225 e$B$re(B Marshal.dump e$B$7$?$b$N$re(B  
LANG=ja\_JP.EUC-JP e$B$J4D6-$Ge(B Marshal.load e$B$G$-$^$;$s!#e(B

% ./ruby -e ‘Marshal.dump(56225, STDOUT)’ \> z  
% LANG=ja\_JP.EUC-JP ./ruby -ve ‘Marshal.load(STDIN)’ \< z  
ruby 1.9.0 (2008-01-21 revision 0) [i686-linux]  
-e:1:in `load': end of file reached (EOFError) from -e:1:in`’
