Skip to content

Commit

Permalink
Add GB18030 to the encoding lists
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongnianTao committed Aug 22, 2019
1 parent 86525a3 commit 4cee2c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/Encoding/Registry.pm6
Expand Up @@ -23,6 +23,7 @@ my class Encoding::Registry {
nqp::list('windows-1252', 'windows1252'),
nqp::list('windows-932', 'windows932'),
nqp::list('gb2312', 'gb2312'),
nqp::list('gb18030', 'gb18030'),
);
my int $i = -1;
my int $elems = nqp::elems($encodings);
Expand Down
2 changes: 2 additions & 0 deletions src/core/Rakudo/Internals.pm6
Expand Up @@ -322,6 +322,8 @@ my class Rakudo::Internals {
'windows932', 'windows-932',
# GB2312
'gb2312', 'gb2312',
# GB18030
'gb18030', 'gb18030',
);
method NORMALIZE_ENCODING(Str:D \encoding) {
nqp::ifnull(
Expand Down

0 comments on commit 4cee2c3

Please sign in to comment.