
"nobu (Nobuyoshi Nakada) via ruby-core" <ruby-core@ml.ruby-lang.org> wrote:
Issue #19465 has been updated by nobu (Nobuyoshi Nakada). https://bugs.ruby-lang.org/issues/19465#change-102042
Seems fine.<THUMBS UP SIGN>
``` OK, thanks, committed as 35136e1e9c232ad7a03407b992b2e86b6df43f63 Hopefully I didn't break anything for win32. Btw, to display your emoji as ASCII in my text terminal with limited glyphs, I had use the following Perl script. Not sure if there's a way to do this with Ruby stdlib: --------8<------ eval 'exec perl -w -S $0 ${1+"$@"}' if 0; # running under some shell use v5.12; use charnames (); use Encode qw(find_encoding); binmode STDIN, ':utf8'; binmode STDOUT, ':utf8'; my $enc_ascii = find_encoding('us-ascii'); my $fallback = sub { join('', map { if ($_ == 0xfe0f) { # VARIATION SELECTOR-16 ''; } elsif (defined(my $name = charnames::viacode($_))) { "<$name>" } else { sprintf('<#0x%x>', $_); } } @_); }; while (<STDIN>) { print $enc_ascii->encode($_, $fallback) } ```