sgzwiz / pyscripter

Automatically exported from code.google.com/p/pyscripter
1 stars 2 forks source link

Case-related "find and replace" issue #559

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Enter a uppercase string (es. 'foo') in the editor window
2.Enter the same but lowercase ('FOO') string in the editor window
3.Search (case sensitive) for lowercase string ('foo') and replace it by the 
uppercase version ('FOO')

What is the expected output? What do you see instead?
I expect search matching the lowercase string but it fails.

What version of the product are you using? On what operating system?
2.4.4 on Windows 7 64 bit.

Please provide any additional information below.
I also noted another maybe-related bug in replacing a lowercase substring with 
another lowercase substring: replaced became capitalized.

Example.
Editor line: 'some text spam_foo'
Find: 'foo' / Replace with: 'bar' (Case sensitive)
Result: 'some text spam_Bar'.
Note: a class named 'Bar' was existing in the script.

Original issue reported on code.google.com by iacopoma...@gmail.com on 2 Sep 2011 at 9:52

GoogleCodeExporter commented 9 years ago
I am not able to reproduce either bug.  

Here PyScripter is working as expected.

Original comment by pyscripter on 6 Sep 2011 at 11:23

GoogleCodeExporter commented 9 years ago
Ok, let's focus in the first suspected bug. In fact it seems more complicated.
Try to reproduce it with this trivial code (see attachment for the snapshot of 
related Pyscripter behavior).

FOO = 'FOO'

print FOO

foo = 'foo'

print foo

Foo = 'Foo'

class Foo(object):
    pass

Original comment by iacopoma...@gmail.com on 7 Sep 2011 at 7:24

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by pyscripter on 7 Sep 2011 at 9:47

GoogleCodeExporter commented 9 years ago
Could you please test with the 2.4.4 preview from 
http://code.google.com/p/pyscripter/downloads/list.

I thought I reproduced it once but I am still having trouble reproducing it.

Original comment by pyscripter on 7 Sep 2011 at 11:31

GoogleCodeExporter commented 9 years ago
Actually there was one issue when you just chanced case sensitivity without 
changing the search term that is now fixed.  I will close the issue, since it 
now works fine here.  Please check with the next version when it is released 
and if it persists let us know and the issue will be reopened.

Original comment by pyscripter on 7 Sep 2011 at 11:41

GoogleCodeExporter commented 9 years ago

Original comment by pyscripter on 7 Sep 2011 at 11:41