Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case-related "find and replace" issue #559

Closed
GoogleCodeExporter opened this issue Aug 24, 2015 · 6 comments
Closed

Case-related "find and replace" issue #559

GoogleCodeExporter opened this issue Aug 24, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Cannot-Reproduce

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Reopened

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant