[Geany-devel] Search in files & encodings

Enrico Tröger enrico.troeger at xxxxx
Sun Nov 16 18:14:26 UTC 2008

On Fri, 14 Nov 2008 09:08:00 +0400, "Walery Studennikov"
<despairr at gmail.com> wrote:

>2008/11/13 Enrico Tröger <enrico.troeger at uvena.de>:
>>>> Just to clarify: you are talking about wrongly displayed search
>>>> results in the messages window at the bottom when searching in
>>>> files with a non-UTF-8 encoding?
>>>No. Just nothing found (bacause we searching in wrong encoding).
>> Oh, ok. Now that you say it, it's obvious. We pass always UTF-8 text
>> to 'grep' but this doesn't match when the file is encoded in any
>> other encoding (and you are using non-Ascii characters).
>> I added some code in SVN r3221 to provide an encoding list in the
>> Find in Files dialog.
>> The set encoding is used to convert the entered search text into and
>> to display the search results.
>> Actually, the entered search text can be in UTF-8 or in the specified
>> encoding though I only tested it with UTF-8 text since this is the
>> most common case (everything you select or copy from within Geany is
>> UTF-8, always even the file encoding is something else).
>> Any feedback is welcome.
>Yes, it works now, thanks.
>Just on more feature-request for "Find in files" dialog:
>search directories ("Directory" field) now are not remembered between
>different geany runs but it probably should be.
>When I exit geany and run I again -- directory list is empty.

Yes, this could be implemented. But I won't work on that in the near

>Also, I think, it would be reasonable to set "directory" field
>to default project directory by default.

In current SVN version, the project base dir is added to the directory
list in the Find in Files dialog though not chosen by default. But at
least it's there once a project is open.


Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20081116/9873d729/attachment.pgp>

More information about the Devel mailing list