General

Profile

nirvdrum (Kevin Menard)

  • Login: nirvdrum
  • Registered on: 03/03/2017
  • Last sign in: 07/21/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 6 7

Projects

Project Roles Registered on
Ruby Contributor 03/03/2025

Activity

10/10/2024

03:44 AM Ruby Feature #20792: String#with_encoding(encoding)
Eregon (Benoit Daloze) wrote in #note-1:
> I have wanted this feature too, how about adding an optional argument to `String#valid_encoding?`?
> ...
I'm partial to this one. Alternatively, it could be nice to have the inverse: `Encoding...
nirvdrum (Kevin Menard)

04/10/2023

03:23 PM Ruby Misc #19431: DevMeeting at RubyKaigi 2023
I'll be there. nirvdrum (Kevin Menard)

08/01/2022

05:33 PM Ruby Feature #18949: Deprecate and remove replicate and dummy encodings
> But on the other hand, ISO-2022-JP, UTF-16, and UTF-32 definitely have their uses. They are not so much used directly when processing strings (because indeed for these encodings, most string operations don't work, or don't work correct... nirvdrum (Kevin Menard)

07/20/2022

04:38 PM Ruby Bug #18931: Inconsistent handling of invalid codepoints in String#lstrip and String#rstrip
My own take on three options, with no significance to the order, are:
**Ignore the code point**
The documentation for `lstrip` is "Returns a copy of the receiver with leading whitespace removed." It seems fairly straightforward and...
nirvdrum (Kevin Menard)
04:25 PM Ruby Bug #18931 (Closed): Inconsistent handling of invalid codepoints in String#lstrip and String#rstrip
When attempting to strip a string, there are three basic options when an invalid code point is encountered:
1) Ignore the code point
2) Strip the code point
3) Raise an exception
For background, Ruby does not consider the string'...
nirvdrum (Kevin Menard)

02/10/2022

03:14 AM Ruby Feature #18579: Concatenation of ASCII-8BIT strings shouldn't behave differently depending on string contents
naruse (Yui NARUSE) wrote in #note-2:
> The encoding of the resulted string depends "ascii only or not" and "ascii compatibility".
> ...
The rules are actually a bit more complicated than that because empty strings get special treatmen...
nirvdrum (Kevin Menard)

06/28/2019

04:33 PM Ruby Feature #15940: Coerce symbols internal fstrings in UTF8 rather than ASCII to better share memory with string literals
I generally like the idea, but really from a semantics perspective rather than a memory savings one. It's confusing to both implementers and end users alike that Symbols take on a different encoding from Strings if they happen to be ASCI... nirvdrum (Kevin Menard)

03/04/2019

04:28 PM Ruby Bug #15635: Inconsistent handling of dummy encodings and code range
I also tested some older Ruby releases. The issue is also present in `ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-linux]` and `ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]`. nirvdrum (Kevin Menard)
04:26 PM Ruby Bug #15635 (Closed): Inconsistent handling of dummy encodings and code range
It's hard to write code that works properly with dummy encodings, so they should really be avoided altogether. However, I've come across a code path that I think yields inconsistent results when it comes to dummy encodings with a minimum... nirvdrum (Kevin Menard)

01/16/2019

04:35 PM Ruby Bug #15543 (Rejected): rb_str_set_len should clear code range
Calling `rb_str_set_len` on a `String` could alter the code range. I think this hasn't been much of an issue because of pure luck rather than anything that was deliberately designed. If called on a string that already has a `CR_UNKNOWN` ... nirvdrum (Kevin Menard)

Also available in: Atom