From: David Flanagan Date: 2007-10-27T07:40:40+09:00 Subject: Re: Hopefully Complete List of Possible Encoding Specifications -Existing Ones Martin Duerst wrote: > At 10:30 07/10/26, Nobuyoshi Nakada wrote: >> However, now I'm wondering the encoding of the main script file >> shouldn't set the primary encoding. Instead, should it be to be set >> only from a command line option or locale? > > Do you mean "I'm wondering whether the encoding of the main script > file should indeed set the primary encoding, or not."? That's indeed > a good question. I don't know the answer, it seems to me there > are good arguments/situations for both. > Actually, I'm having trouble coming up with a good argument for setting the primary encoding from the script encoding instead of from the locale... The thing that convinces me that a coding comment in a script should not set primary encoding is the question of what a coding comment should do for files loaded with 'require'. (Also: does require need a new argument to specify the encoding of the file to be loaded? Or should all library authors be sure to use a coding comment so their files can be correctly loaded regardless of the primary encoding of the loading script?) David