ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:85737] [Ruby trunk Bug#14539] Duplicate range in character class warning
       [not found] <redmine.issue-14539.20180221225619@ruby-lang.org>
@ 2018-02-21 22:56 ` oz
  2018-02-21 23:51 ` [ruby-core:85738] " shevegen
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: oz @ 2018-02-21 22:56 UTC (permalink / raw
  To: ruby-core

Issue #14539 has been reported by oznik (Oz Shelach).

----------------------------------------
Bug #14539: Duplicate range in character class warning
https://bugs.ruby-lang.org/issues/14539

* Author: oznik (Oz Shelach)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: >= 2.5.0
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
~~~ ruby
#!/usr/bin/env ruby -w
puts RUBY_VERSION
puts "👍".match?(/\X/).inspect
puts '--------------'
~~~

~~~ text
2.4.3
true
--------------
2.5.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------
2.6.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------
~~~

I don't think there's a duplicate range here, so there should not be a warning.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:85738] [Ruby trunk Bug#14539] Duplicate range in character class warning
       [not found] <redmine.issue-14539.20180221225619@ruby-lang.org>
  2018-02-21 22:56 ` [ruby-core:85737] [Ruby trunk Bug#14539] Duplicate range in character class warning oz
@ 2018-02-21 23:51 ` shevegen
  2018-05-05 16:25 ` [ruby-core:86912] " vipulnsward
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: shevegen @ 2018-02-21 23:51 UTC (permalink / raw
  To: ruby-core

Issue #14539 has been updated by shevegen (Robert A. Heiler).


Agreed. Your code did not use more than one \X so the warning is
incorrect as it is (because you did not use more than one \X, so
at best, it may have originated from elsehwere, which was not 
your fault then) - so it sounds like a bug IMO.

Since some grapheme-specific code was added in 2.5.x, I believe
this may be a reason for the behaviour change compared to 
ruby 2.4.x.

----------------------------------------
Bug #14539: Duplicate range in character class warning
https://bugs.ruby-lang.org/issues/14539#change-70579

* Author: Anonymous
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: >= 2.5.0
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
~~~ ruby
#!/usr/bin/env ruby -w
puts RUBY_VERSION
puts "👍".match?(/\X/).inspect
puts '--------------'
~~~

~~~ text
2.4.3
true
--------------
2.5.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------
2.6.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------
~~~

I don't think there's a duplicate range here, so there should not be a warning.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:86912] [Ruby trunk Bug#14539] Duplicate range in character class warning
       [not found] <redmine.issue-14539.20180221225619@ruby-lang.org>
  2018-02-21 22:56 ` [ruby-core:85737] [Ruby trunk Bug#14539] Duplicate range in character class warning oz
  2018-02-21 23:51 ` [ruby-core:85738] " shevegen
@ 2018-05-05 16:25 ` vipulnsward
  2019-06-20 18:26 ` [ruby-core:93284] " merch-redmine
  2019-08-26 14:06 ` [ruby-core:94562] [Ruby master " usa
  4 siblings, 0 replies; 5+ messages in thread
From: vipulnsward @ 2018-05-05 16:25 UTC (permalink / raw
  To: ruby-core

Issue #14539 has been updated by vipulnsward (Vipul Amler).


shevegen (Robert A. Heiler) wrote:
> Agreed. Your code did not use more than one \X so the warning is
> incorrect as it is (because you did not use more than one \X, so
> at best, it may have originated from elsehwere, which was not 
> your fault then) - so it sounds like a bug IMO.
> 
> Since some grapheme-specific code was added in 2.5.x, I believe
> this may be a reason for the behaviour change compared to 
> ruby 2.4.x.

This warning now shows up on ActiveSupport: activesupport/lib/active_support/core_ext/string/filters.rb:109: warning: character class has duplicated range: /\X/

----------------------------------------
Bug #14539: Duplicate range in character class warning
https://bugs.ruby-lang.org/issues/14539#change-71874

* Author: Anonymous
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: >= 2.5.0
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
~~~ ruby
#!/usr/bin/env ruby -w
puts RUBY_VERSION
puts "👍".match?(/\X/).inspect
puts '--------------'
~~~

~~~ text
2.4.3
true
--------------
2.5.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------
2.6.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------
~~~

I don't think there's a duplicate range here, so there should not be a warning.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:93284] [Ruby trunk Bug#14539] Duplicate range in character class warning
       [not found] <redmine.issue-14539.20180221225619@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2018-05-05 16:25 ` [ruby-core:86912] " vipulnsward
@ 2019-06-20 18:26 ` merch-redmine
  2019-08-26 14:06 ` [ruby-core:94562] [Ruby master " usa
  4 siblings, 0 replies; 5+ messages in thread
From: merch-redmine @ 2019-06-20 18:26 UTC (permalink / raw
  To: ruby-core

Issue #14539 has been updated by jeremyevans0 (Jeremy Evans).

Status changed from Open to Closed

This spurious warning appears in ruby 2.5.5, but not in ruby 2.6.3.  Please upgrade to Ruby 2.6.3.  This should be fixed in 2.5 if commit:179045acaf5de8398c321ada86a76f1afb77a796 is backported.

----------------------------------------
Bug #14539: Duplicate range in character class warning
https://bugs.ruby-lang.org/issues/14539#change-78752

* Author: Anonymous
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: >= 2.5.0
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
~~~ ruby
#!/usr/bin/env ruby -w
puts RUBY_VERSION
puts "👍".match?(/\X/).inspect
puts '--------------'
~~~

~~~ text
2.4.3
true
--------------
2.5.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------
2.6.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------
~~~

I don't think there's a duplicate range here, so there should not be a warning.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:94562] [Ruby master Bug#14539] Duplicate range in character class warning
       [not found] <redmine.issue-14539.20180221225619@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2019-06-20 18:26 ` [ruby-core:93284] " merch-redmine
@ 2019-08-26 14:06 ` usa
  4 siblings, 0 replies; 5+ messages in thread
From: usa @ 2019-08-26 14:06 UTC (permalink / raw
  To: ruby-core

Issue #14539 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: REQUIRED to 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: DONE

ruby_2_5 r67752 merged revision(s) 179045acaf5de8398c321ada86a76f1afb77a796.

----------------------------------------
Bug #14539: Duplicate range in character class warning
https://bugs.ruby-lang.org/issues/14539#change-81018

* Author: Anonymous
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: >= 2.5.0
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: DONE
----------------------------------------
~~~ ruby
#!/usr/bin/env ruby -w
puts RUBY_VERSION
puts "👍".match?(/\X/).inspect
puts '--------------'
~~~

~~~ text
2.4.3
true
--------------
2.5.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------
2.6.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------
~~~

I don't think there's a duplicate range here, so there should not be a warning.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-26 14:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-14539.20180221225619@ruby-lang.org>
2018-02-21 22:56 ` [ruby-core:85737] [Ruby trunk Bug#14539] Duplicate range in character class warning oz
2018-02-21 23:51 ` [ruby-core:85738] " shevegen
2018-05-05 16:25 ` [ruby-core:86912] " vipulnsward
2019-06-20 18:26 ` [ruby-core:93284] " merch-redmine
2019-08-26 14:06 ` [ruby-core:94562] [Ruby master " usa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).