From c73cb78fbaa9c83be2ad6c5919291dfe9d635609 Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Thu, 1 Feb 2018 17:45:04 -0800 Subject: [PATCH] Add windows-1251 encoding to the list of possible encodings Also allow windows1251 and windows1252 (without the dash) to work as well. --- src/core/Encoding/Registry.pm | 3 ++- src/core/Rakudo/Internals.pm | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/Encoding/Registry.pm b/src/core/Encoding/Registry.pm index 4ef21c22054..d2c27acbe31 100644 --- a/src/core/Encoding/Registry.pm +++ b/src/core/Encoding/Registry.pm @@ -16,7 +16,8 @@ my class Encoding::Registry { nqp::list("utf8-c8","utf-8-c8"), nqp::list("utf16","utf-16"), nqp::list("utf32","utf-32"), - nqp::list("windows-1252") + nqp::list("windows-1252"), + nqp::list("windows-1251") ); my int $i = -1; my int $elems = nqp::elems($encodings); diff --git a/src/core/Rakudo/Internals.pm b/src/core/Rakudo/Internals.pm index 9da08e9a6b7..104563a665b 100644 --- a/src/core/Rakudo/Internals.pm +++ b/src/core/Rakudo/Internals.pm @@ -272,7 +272,11 @@ my class Rakudo::Internals { 'ascii', 'ascii', 'iso-8859-1', 'iso-8859-1', 'windows-1252', 'windows-1252', - # with dash + 'windows-1251', 'windows-1251', + # windows without dash + 'windows1251', 'windows-1252', + 'windows1252', 'windows-1251', + # utf with dash 'utf-8', 'utf8', 'utf-16', 'utf16', 'utf-32', 'utf32',