coffeejunk (Maximilian Haack)
- Login: coffeejunk
- Email: max@haack.xyz
- Registered on: 11/23/2012
- Last sign in: 12/16/2022
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
02/26/2013
-
08:47 PM Ruby Bug #7967 (Rejected): String#encode invalid: :replace doesn't replace invalid chars
- =begin
1.9.3p385 :001 > "\xc3\x28".encode('UTF-8', 'UTF-8', invalid: :replace) =~ /\s/
=> nil
2.0.0-p0 :001 > "\xc3\x28".encode!('UTF-8', 'UTF-8', invalid: :replace) =~ /\s/
ArgumentError: invalid byte sequence in UTF-8
from (ir...
01/31/2013
-
06:07 PM Ruby Bug #7752: Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
- The only problem I see is that ruby is lying to the user. It is not severe since, as you said, there are no non-ascii characters in the resulting string, but I think ruby should respect the set encoding.
01/30/2013
-
01:14 AM Ruby Bug #7752 (Rejected): Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
- =begin
When converting an instance of Rational/Float/Fixnum/Bignum to a string with the (({.to_s})) method, the resulting string has the encoding US-ASCII. This happens for 1.9.3 as well as 2.0.0rc1.
(({> __ENCODING__}))
(({ => #<En...