Re: Search text and unicode build

le dahut <[email protected]>
Newsgroups gmane.comp.ide.boa-constructor.user
Message-ID <[email protected]>
It are normal .py files.

I made some tests and it appears if there are some "caractères 
accentués". If I have :
"""
coucou
psqfqsfq
coucou
sdfs fsdf sdf sd fcoucou sdfsd
sdkj fmqlkj fkqmsj fkq coucou  sdfsq
éé
sdlkfjds fsd
sd f
q
f qf coucou
sdfds coucousdfsd
"""

and I search for "coucou", it is correctly highlighted before the 
characters "éé". After the blue highlight is 2 characters before where 
it should be.
It seems that the shift corresponds with the number of accentuated 
characters.

I have modified C:\Python25\Lib\site.py line 370 with :
encoding = "iso8859-1"


Werner F. Bruhin a écrit :
> Hi,
> 
> le dahut wrote:
>> Hello,
>>
>> I'm using boa-constructor-0.6.1.src.win32.exe on windows xp (sources 
>> installed in C:\python25) with python-2.5.1.msi.
>>
>> I use it with wxPython2.8-win32-unicode-2.8.7.1-py25.exe.
>>
>> When I search some text (Ctrl+f) the higlighted found text doesn't 
>> appear on the text but a few variable number of caracters before (/after ?).
>>
>> If I use wxPython2.8-win32-ansi-2.8.7.1-py25.exe this problem does not 
>> occur.
>>
>> Is there any solution ?
> I am using just about the same (except that I get my boa version always 
> from CVS), i.e.
> # Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
> # wxPython 2.8.7.1, Boa Constructor 0.6.1
> # Type "copyright", "credits" or "license" for more information.
>  >>> import wx
>  >>> wx.version()
> '2.8.7.1 (msw-unicode)'
> 
> I don't see the problem you are seeing.
> 
> Is this only happening with particular files?
> 
> Werner
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.