[#99115] [Ruby master Bug#17023] How to prevent String memory to be relocated in ruby-ffi — larskanis@...
Issue #17023 has been reported by larskanis (Lars Kanis).
22 messages
2020/07/10
[#99375] [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings — merch-redmine@...
Issue #17055 has been reported by jeremyevans0 (Jeremy Evans).
29 messages
2020/07/28
[#101207] [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings
— merch-redmine@...
2020/12/02
Issue #17055 has been updated by jeremyevans0 (Jeremy Evans).
[#101231] Re: [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings
— Austin Ziegler <halostatue@...>
2020/12/03
What does this mean?
[ruby-core:99075] [Ruby master Bug#16922] single quote should be escaped in xml
From:
merch-redmine@...
Date:
2020-07-07 14:29:42 UTC
List:
ruby-core #99075
Issue #16922 has been updated by jeremyevans0 (Jeremy Evans). Well, I haven't heard from @akr. But if he doesn't respond in the next few days, I'll merge my pull request. ---------------------------------------- Bug #16922: single quote should be escaped in xml https://bugs.ruby-lang.org/issues/16922#change-86449 * Author: lisbethw1130 (Lisbeth Wu) * Status: Open * Priority: Normal * Assignee: akr (Akira Tanaka) * ruby -v: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- This is Lisbeth from Taiwan. I'm trying to convert a string to xml by using 'string'.encode(xml: :attr) but single quote doesn't escape as expected Here's the spec shows which character needs to be escaped: https://www.w3.org/TR/xml/#dt-escape and I found a more clean table in sitemap spec: https://www.sitemaps.org/protocol.html#escaping ``` Ampersand & & Single Quote ' ' Double Quote " " Greater Than > > Less Than < < ``` expected output: > puts ':$+,;:=?@&\'"><'.encode(xml: :attr) ``` ":$+,;:=?@& **'** "><" ``` real output: > ``` > ":$+,;:=?@& **'** "><" > ``` Thanks for helping -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>