diff options
| author | Maple Ong <maple.ong@gusto.com> | 2023-11-15 15:40:48 -0800 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-11-16 17:13:16 +0000 |
| commit | ae56db590fffb79902b7815a86e430732d8eed14 (patch) | |
| tree | 915956f6a91073e9341b172ac250245f1d058b52 | |
| parent | 5277cf3eefd9401957349b4611caaaa65d99ec80 (diff) | |
[ruby/prism] Hook up encoding file to prism
https://github.com/ruby/prism/commit/93ec917dfe
| -rw-r--r-- | prism/enc/pm_encoding.h | 1 | ||||
| -rw-r--r-- | prism/prism.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/prism/enc/pm_encoding.h b/prism/enc/pm_encoding.h index a42be774bc..7d73576665 100644 --- a/prism/enc/pm_encoding.h +++ b/prism/enc/pm_encoding.h @@ -158,6 +158,7 @@ extern const uint8_t pm_encoding_unicode_table[256]; extern pm_encoding_t pm_encoding_ascii; extern pm_encoding_t pm_encoding_ascii_8bit; extern pm_encoding_t pm_encoding_big5; +extern pm_encoding_t pm_encoding_cp51932; extern pm_encoding_t pm_encoding_euc_jp; extern pm_encoding_t pm_encoding_gbk; extern pm_encoding_t pm_encoding_iso_8859_1; diff --git a/prism/prism.c b/prism/prism.c index eb6e6dabeb..347aa68039 100644 --- a/prism/prism.c +++ b/prism/prism.c @@ -6033,6 +6033,7 @@ parser_lex_magic_comment_encoding_value(pm_parser_t *parser, const uint8_t *star // Then check all the others. ENCODING("big5", pm_encoding_big5); + ENCODING("cp51932", pm_encoding_cp51932); ENCODING("gbk", pm_encoding_gbk); ENCODING("iso-8859-1", pm_encoding_iso_8859_1); ENCODING("iso-8859-2", pm_encoding_iso_8859_2); |
