< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #14077 has been reported by nirvdrum (Kevin Menard).
----------------------------------------
Feature #14077: Add Encoding::FILESYSTEM and Encoding::LOCALE constants
https://bugs.ruby-lang.org/issues/14077
* Author: nirvdrum (Kevin Menard)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
The `Encoding` class has constants defined for all of the standard encodings, but does not have constants defined for some of the special encodings. In particular, the "filesystem" and "locale" encodings do not have a corresponding `Encoding::FILESYSTEM` and `Encoding::LOCALE`. As a result, every time they need to be used they must be looked up using `Encoding.find`. As far as I can tell, neither of these special encodings can change after the Ruby process has been started up. Even changing the `$LANG` environment variable within the Ruby process doesn't seem to affect the value for these special encodings.
Therefore, I'm proposing the introduction of `Encoding::FILESYSTEM` and `Encoding::LOCALE` constants both as a matter of consistency and as a matter of efficiency.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>