From: paptimusx <paptimusx@gmail.com>
To: "Ruby developers (Japanese)" <ruby-dev@ruby-lang.org>
Subject: [ruby-dev:51014] Re: 2.7までで動いていたが3.0でエンコードのエラーになる
Date: Thu, 4 Feb 2021 01:43:34 +0900 [thread overview]
Message-ID: <CAAVV8Pe+93j-wGFuUFhs=u8TB66-Jm=MTb6YQtz4jMzdKeh_EQ@mail.gmail.com> (raw)
In-Reply-To: <20210204011804.308E.C613B076@garbagecollect.jp>
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
なかむら(う)さま
ありがとうございます。理解しました。
WindowsのRubyの場合、インストーラによっては
環境変数RUBYOPTでutf-8が指定されてしまうのでそれは削除してあります。
$ set rubyopt
環境変数 rubyopt が定義されていません
$ c:\tools\ruby27\bin\ruby.exe -e "print Encoding.locale_charmap"
CP932
$ c:\tools\ruby30\bin\ruby.exe -e "print Encoding.locale_charmap"
CP932
$ c:\tools\ruby30\bin\ruby.exe -e "print Encoding.default_external"
UTF-8
$ c:\tools\ruby27\bin\ruby.exe -e "print Encoding.default_external"
Windows-31J
ところで -Ks オプションはまだ残っているようで、これを使うと
openに引数をつけてまわるよりもだいぶ楽ですが、
いまさらこれに頼るのはあまりよろしくないでしょうか。
$ c:\tools\ruby30\bin\ruby.exe -Ks -e "print Encoding.default_external"
Windows-31J
[-- Attachment #2: Type: text/html, Size: 1202 bytes --]
prev parent reply other threads:[~2021-02-03 16:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-28 14:28 [ruby-dev:51000] 2.7までで動いていたが3.0でエンコードのエラーになる paptimusx
2021-01-29 15:05 ` [ruby-dev:51001] 2.7までで動いていたが3.0でエンコードのエラーになる U.NAKAMURA
2021-02-03 15:01 ` [ruby-dev:51012] " paptimusx
2021-02-03 16:18 ` [ruby-dev:51013] " U.NAKAMURA
2021-02-03 16:43 ` paptimusx [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAVV8Pe+93j-wGFuUFhs=u8TB66-Jm=MTb6YQtz4jMzdKeh_EQ@mail.gmail.com' \
--to=paptimusx@gmail.com \
--cc=ruby-dev@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).