Обсуждение: [pgAdmin III] #258: Search & Replace in Query Tool trips over multibyte characters
[pgAdmin III] #258: Search & Replace in Query Tool trips over multibyte characters
От
"pgAdmin Trac"
Дата:
#258: Search & Replace in Query Tool trips over multibyte characters
------------------------+---------------------------------------------------
Reporter: brsa | Owner: dpage
Type: bug | Status: new
Priority: minor | Milestone:
Component: pgadmin | Version: trunk
Keywords: Query Tool | Platform: windows
------------------------+---------------------------------------------------
Testing pgAdmin v1.12.1 on Win XP Home & Pro.
(Bug exists in v1.12 and v1.10 as well.)
Searchstrings with multibyte characters (like German umlauts) are found
correctly. But byte-length and character-length get mixed up in the
highlighting of the matching text.
That's what seems to happen:
1.) Count number of _characters_ in the search-string.
2.) Highlight matching string for as many _bytes_ (instead of characters).
So If you paste a string of 2-byte characters (in utf8 encoding) and
search for it:
öööööööööö
only characters 1 to 5 get highlighted.
If you try the same with 3-byte chinese symbols:
漢族人漢族人
only the leading third of the search-string is highlighted.
As a consequence, [Replace] does not work at all with multibyte character
in the search-string. (Works with multibyte chars in the replace-string,
though.)
--
Ticket URL: <http://code.pgadmin.org/trac/ticket/258>
pgAdmin III <http://code.pgadmin.org/trac/>
pgAdmin III
Re: [pgAdmin III] #258: Search & Replace in Query Tool trips over multibyte characters
От
"pgAdmin Trac"
Дата:
#258: Search & Replace in Query Tool trips over multibyte characters
------------------------+---------------------------------------------------
Reporter: brsa | Owner: dpage
Type: bug | Status: new
Priority: minor | Milestone:
Component: pgadmin | Version: trunk
Keywords: Query Tool | Platform: windows
------------------------+---------------------------------------------------
Comment(by brsa):
This bug is still there in 1.12.3 and 1.14beta1.
While testing I found more:
If []Regular expressions is checked in the dialog, multibyte characters
are handled correctly. Try the above testcases with / without regular
expressions.
This can help to circumvent the bug while it's still there. Might also
help to fix it.
--
Ticket URL: <http://code.pgadmin.org/trac/ticket/258#comment:1>
pgAdmin III <http://code.pgadmin.org/trac/>
pgAdmin III