From: Tom Link Date: 2009-02-17T16:25:42+09:00 Subject: Re: invalid byte sequence in US-ASCII (ArgumentError) > > I feel some smell of a bug.  Could you show me the whole code and > > reproducing input please? > > Sure, here you go... When I recently stumbled over not so different problems (one of which is described here [1]) it was because the external encoding (see Encoding.default_external) defaulted to US-ASCII on cygwin because ruby191RC0 ignored the windows locale and the value of the LANG variable -- the part with the windows locale was fixed in the meantime. AFAIK if ruby 191 cannot determine the environment's locale, it defaults to US-ASCII which causes the described problem if a character is > 127. [1] http://groups.google.com/group/ruby-talk-google/browse_frm/thread/865fc72d8fb808ba/