[#107867] Fwd: [ruby-cvs:91197] 8f59482f5d (master): add some tests for Unicode Version 14.0.0 — Martin J. Dürst <duerst@...>
To everybody taking care of continuous integration:
3 messages
2022/03/13
[#108090] [Ruby master Bug#18666] No rule to make target 'yaml/yaml.h', needed by 'api.o' — duerst <noreply@...>
Issue #18666 has been reported by duerst (Martin D端rst).
7 messages
2022/03/28
[#108117] [Ruby master Feature#18668] Merge `io-nonblock` gems into core — "Eregon (Benoit Daloze)" <noreply@...>
Issue #18668 has been reported by Eregon (Benoit Daloze).
22 messages
2022/03/30
[ruby-core:107924] [Ruby master Bug#16922] single quote should be escaped in xml
From:
"headius (Charles Nutter)" <noreply@...>
Date:
2022-03-16 17:37:20 UTC
List:
ruby-core #107924
Issue #16922 has been updated by headius (Charles Nutter). See https://github.com/jruby/jruby/pull/7142 for JRuby update of our jcodings encoding backend, plus the test changes from https://github.com/ruby/ruby/pull/3177. ---------------------------------------- Bug #16922: single quote should be escaped in xml https://bugs.ruby-lang.org/issues/16922#change-96871 * Author: lisbethw1130 (Lisbeth Wu) * Status: Closed * 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: REQUIRED, 2.7: REQUIRED, 3.0: REQUIRED ---------------------------------------- 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>