[#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:115778] [Ruby master Feature#20069] Buffer class in stdlib
From:
"shan (Shannon Skipper) via ruby-core" <ruby-core@...>
Date:
2023-12-18 19:00:36 UTC
List:
ruby-core #115778
Issue #20069 has been updated by shan (Shannon Skipper). pynix (Pynix wang) wrote: > ruby use `String` to deal with bytes, this cause error on irb "invalid byte sequence in utf-8" I'm curious, did you actually run into an "invalid byte sequence" error? If so, could you show the code that produced the error? I know IO::Buffer has already been mentioned, but just wanted to point out it inspects with pretty hex. ``` ruby >> IO::Buffer.for SecureRandom.random_bytes => #<IO::Buffer 0x00007f7dfa885998+16 EXTERNAL READONLY SLICE> #0x00000000 17 bc 59 2d 8b 66 4b 6a 56 96 97 98 5e 07 45 d6 ..Y-.fKjV...^.E. ``` ---------------------------------------- Feature #20069: Buffer class in stdlib https://bugs.ruby-lang.org/issues/20069#change-105714 * 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/