[Eric] Bug report copy/paste to index.kid template closes Eric4

Detlev Offenbach detlev at die-offenbachs.de
Sun Aug 10 11:06:26 BST 2008


Hi,

QScintilla, the editor component used by eric4, has two modes, 'latin1' 
and 'utf8'. The default mode, which is used if the correct encoding cannot be 
determined by eric4 from the file, can be configured on the 
Editor->Filehandling page of the configuration dialog. If QScintilla is in 
latin1 mode and receives some non latin1 chracters, it will crash. That is a 
QScintilla2 (or even Scintilla) problem. Please change your default encoding 
to 'utf-8', which btw. better suits TurboGears.

Regards,
Detlev

On Sonntag, 10. August 2008, Petr Jakeš wrote:
> Hi,
> I have installed eric 4.2.0 (which actually did not upgrade my previous
> 4.1.1 installation made from repository - something like that was mentioned
> already in  previous posting from Seref Arikan).
>
> BTW 4.2.0 crashes anyway, but I think I have got it.
> It looks like it is about double quotes format.Copying the code from the
> pdf document, the double quotes are not "ordinary" double quotes, but "
> &#148 Closing double quotes (see attached file).
> If I am trying to paste the snippet of code  <select id="  where the double
> quotes are &#148 Closing double quotes, to the kid template, Eric4 dies.
>
> HTH
>
> Petr
>
> On Sun, Aug 10, 2008 at 9:50 AM, Detlev Offenbach
>
> <detlev at die-offenbachs.de>wrote:
> > Hi,
> >
> > works for me using eric 4.2.0 (note yours is 4.1.1).
> >
> > Regards,
> > Detlev
> >
> > On Sonntag, 10. August 2008, Petr Jakeš wrote:
> > > Hi I am on Ubuntu 8.04 64bit
> > > Version Numbers:
> > > Python 2.5.2
> > > Qt 4.3.4
> > > PyQt4 4.3.3
> > > sip 4.7.3
> > > QScintilla 2-snapshot-20070923
> > > eric4 4.1.1 (r1972)
> > > Platform: linux2,
> > > 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
> > > [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
> > >
> > > In the TurboGears project, while I am trying to paste code from the
> > > clipboard (code attached bellow), the whole Eric closes (crashes)
> > > without any single message.
> > >
> > > I was trying to copy/paste some simple (non taged) rows of text and
> > > this works without problems.
> > >
> > >
> > > ========== the pasted code  ==================
> > > 10   <body>
> > > 11     <select id="personOption">
> > > 12       <option py:for="person in people"
> > > 13          id="${person.id}" value="${person.id}">
> > > 14          ${person.given_name} ${person.surname}
> > > 15       </option>
> > > 16     </select>
> > > 17     <div id="pets-div" name="pets-div"></div>
> > > 18   </body>
> > > 19 </html>
> > >
> > > Best Regards
> > >
> > > Petr Jakes
> >
> > --
> > Detlev Offenbach
> > detlev at die-offenbachs.de



-- 
Detlev Offenbach
detlev at die-offenbachs.de



More information about the Eric mailing list