https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112014-08-20T01:38:09ZRuby Issue Tracking SystemRuby master - Feature #10152: String#strip doesn't remove non-breaking spacehttps://redmine.ruby-lang.org/issues/10152?journal_id=484112014-08-20T01:38:09Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/48411/diff?detail_id=35000">diff</a>)</li></ul> Ruby master - Feature #10152: String#strip doesn't remove non-breaking spacehttps://redmine.ruby-lang.org/issues/10152?journal_id=484122014-08-20T01:39:44Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-5 priority-4 priority-default closed" href="/issues/10085">Feature #10085</a>: Add non-ASCII case conversion to String#upcase/downcase/swapcase/capitalize</i> added</li></ul> Ruby master - Feature #10152: String#strip doesn't remove non-breaking spacehttps://redmine.ruby-lang.org/issues/10152?journal_id=484152014-08-20T01:41:45Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>Current Ruby does not support non ASCII spaces. Maybe 2.2+ would.</p>
<p>Matz.</p> Ruby master - Feature #10152: String#strip doesn't remove non-breaking spacehttps://redmine.ruby-lang.org/issues/10152?journal_id=521272015-04-12T19:36:44Zojab (ojab ojab)ojab@ojab.ru
<ul></ul><p>There is an issue not only for non-breaking space, but also for other unicode spaces, see <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Strip doesn't handle unicode space characters in ruby 1.9.2 & 1.9.3 (does in 1.9.1) (Open)" href="https://redmine.ruby-lang.org/issues/7845">#7845</a>. For example (excerpt from rails String#squish testcase) <code>%{\u205f\u3000 A string surrounded by various unicode spaces, with tabs(\t\t), newlines(\n\n), unicode nextlines(\u0085\u0085) and many spaces( ). \u00a0\u2007}</code>.<br>
So I think that this ticket should be closed in favour of <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Strip doesn't handle unicode space characters in ruby 1.9.2 & 1.9.3 (does in 1.9.1) (Open)" href="https://redmine.ruby-lang.org/issues/7845">#7845</a>.</p>