[#115884] Windows Ruby 3.2.2: Non-English character added to Windows Registry String Value — Jay Mav via ruby-core <ruby-core@...>
Hello,
3 messages
2023/12/24
[ruby-core:115806] [Ruby master Feature#20069] Buffer class in stdlib
From:
"ioquatix (Samuel Williams) via ruby-core" <ruby-core@...>
Date:
2023-12-20 08:02:15 UTC
List:
ruby-core #115806
Issue #20069 has been updated by ioquatix (Samuel Williams). > ruby use String to deal with bytes, this cause error on irb "invalid byte sequence in utf-8" This is desirable behaviour. The String with UTF-8 encoding cannot contain invalid byte sequences. If you want to store binary data, use `Encoding::BINARY` encoding. > can we get a builtin class like Buffer or Bytes that represent as hex string A Binary string already presents the inspect output as a hex encoded String. As others have pointed out, if you want actual memory mapped binary buffers, use `IO::Buffer`. ---------------------------------------- Feature #20069: Buffer class in stdlib https://bugs.ruby-lang.org/issues/20069#change-105755 * Author: pynix (Pynix wang) * Status: Open * Priority: Normal ---------------------------------------- ruby use `String` to deal with bytes, this cause error on irb "invalid byte sequence in utf-8" can we get a builtin class like Buffer or Bytes that represent as hex string -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/