From: | "pgAdmin Trac" <trac(at)code(dot)pgadmin(dot)org> |
---|---|
To: | |
Cc: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | [pgAdmin III] #258: Search & Replace in Query Tool trips over multibyte characters |
Date: | 2010-10-17 22:34:04 |
Message-ID: | 045.a82920025342029447438de3c656a4a5@code.pgadmin.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
#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
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2010-10-17 22:44:23 | pgAdmin III commit: Update the main form to use a wxAuiNotebook. This a |
Previous Message | Dave Page | 2010-10-17 20:30:37 | pgAdmin III commit: Add block folding to the Query Tool and SQL text bo |