Sublime Forum

Find/replace bug

#1

I have discovered a bug related to European stressed characters in Find/Replace (case by case mode). For example: if I need to replace “ê” with “e”, only the first occurrence is replaced. The rest are untouched. Same problem with similar characters: á/a, í/i etc. No problem if I use “Replace all”.

0 Likes

#2

which version of ST are you running and which platform are you on?
I just tried to replace ê with e in a text and it works as expected: clicking on “replace” it replace 1 char per click cycling through the document

tested on Win7@64bit ST dev3105

1 Like

#3

The problem appears in ST3 and ST2 too. Platform: Win XP.

0 Likes

#4

Test file uses Western (Windows 1252) encoding.

0 Likes

#5

Can’t reproduce either under XP.
I did the following, to try reproducing the bug:

  • opened a document with multiple ê occurrences with Windows1252 encoding
  • hit Ctrl+H (find/replace panel) -> active panel switches are “wrap” and “highlight matches”
  • typed ê under “Find What”, typed “e” under “Replace With”
  • hit replace -> first match is replaced
  • hit replace other times -> every time 1 more occurrence was replaced (as expected)
0 Likes

#6

Any way to send my .txt file to you? Upload only accepts graphic files.

0 Likes

#7

No problem with the same file in a Mac (El Capitan).

0 Likes

#8

The problem in XP has disappeared, I don’t know why. I’ll continue to test and I’ll report. Could it be related to the fact that I’m using a XP non-English version? Anyhow, thank you very much for your help.

0 Likes