From: larskanis@... Date: 2020-11-22T11:06:39+00:00 Subject: [ruby-core:101012] [Ruby master Feature#16233] winruby UTF8 Fallback for no CodePage Issue #16233 has been updated by larskanis (Lars Kanis). I've been notified by this issue several times, so that I finally implemented the missing codepage CP720 in https://github.com/ruby/ruby/pull/3803 . I hope it's OK to be merged. ---------------------------------------- Feature #16233: winruby UTF8 Fallback for no CodePage https://bugs.ruby-lang.org/issues/16233#change-88685 * Author: gabuscus (Gabriel Nagy) * Status: Open * Priority: Normal * Assignee: duerst (Martin D�rst) * Target version: 3.0 ---------------------------------------- This is to deal specifically with setting the Region to Arabic which sets the codepage to 720. This codepage isn't recognised by Ruby which causes it to fail during initialisation when setting up LOCALE. This patch to Ruby is necessary to handle languages/regions on windows where the codepage is not supported by Ruby such as Arabic which uses codepage 720. If the codepage is not found, the Locale falls back to UTF8. This is a well known Ruby/Ruby on Rails issue which is described at https://stackoverflow.com/questions/22815542/rails4-unknown-encoding-name-cp720 Opened PR: https://github.com/ruby/ruby/pull/2518 ---Files-------------------------------- windows_nocodepage_utf8_fallback_r2.5.patch (946 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: