Bug 5249 - Search broken in UTF-8 language environment
Summary: Search broken in UTF-8 language environment
Alias: None
Product: Sisyphus
Classification: Development
Component: emacs21-X11 (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Eugene Vlasov
QA Contact: qa-sisyphus
Depends on:
Reported: 2004-09-26 14:25 MSD by Mikhail Zabaluev
Modified: 2006-04-14 13:30 MSD (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Zabaluev 2004-09-26 14:25:58 MSD
The UTF-8 language environment is apparently broken; internal representation of
wide characters of various origins is probably at fault.
The Unicode characters entered manually in the search prompt are treated
differently to the same characters loaded in the editor buffer from a file.
Search fails to match between the two kinds.

This bug may be related to bug #4063.
Steps to Reproduce:
1. Launch Emacs.
2. M-x set-language-environment UTF-8
3. Open a file containing non-Latin characters in UTF-8 (e.g. a Russian text).
4. Copy a string containing non-Latin characters from the file into the PC
5. Set the caret at the beginning of the file.
6. Activate the Search or Search-and-Replace (M-%) prompt.
7. Paste the string from the PC clipboard into the search prompt, .
8. Run the search.
9. Set the caret at the beginning of the file again.
10. Activate the search prompt again.
11. Enter the same search string manually, or recall the last search string with
the arrow up key and replace one or more non-Latin characters to themselves
typed manually.
12. Run the search.
Actual Results:  
The search in step 8 succeeds, the search in step 12 fails.

Expected Results:  
Both searches should have found the same string.
Comment 1 Alex Ott 2004-09-27 09:23:49 MSD
ждите релиза 21.4
Comment 2 viy 2005-11-23 15:01:23 MSK
assigning to current maintainers
Comment 3 Eugene Vlasov 2005-11-23 15:51:37 MSK
В emacs22 это исправлено. Ждем появления release candidate - будет в сизифе.
Comment 4 Eugene Vlasov 2006-02-10 14:54:17 MSK
Видимо, после появления emacs22 в Сизифе, этот баг можно закрыть.