From: David Flanagan Date: 2007-11-10T16:49:29+09:00 Subject: Re: primary encoding and source encoding Nobuyoshi Nakada wrote: > Hi, > > At Sat, 10 Nov 2007 10:51:50 +0900, > Yukihiro Matsumoto wrote [ruby-core:13356]: >> Compatibility problem. I didn't think about that. So at least -K >> should set the default source encoding for files without magic >> comments. > > Then, separate it from -E option? > > This patch lets -E/--encoding option have priority over -K option > for the primary encoding (a). An alternative would be the last > one of -K and -E options is in effect for it (b). This seems confusing, and I don't understand why it is necessary. I don't see the use case in which it will be necessary to specify a default source encoding that differs from the primary encoding. And I don't see why it would be a problem to always use the primary encoding (even when derived from the locale) as the default source encoding. David