[Lazarus] Fwd: UTF-8 Problem

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 5 18:39:54 CEST 2008


Please send them as zip, so that your mail client does not auto convert
the encoding.

Mattias



On Thu, 5 Jun 2008 12:15:12 -0300
"Osvaldo Filho" <arquivostcf at gmail.com> wrote:

> unit_utf8.lfm
> 
> object Form1: TForm1
>   Left = 379
>   Height = 56
>   Top = 200
>   Width = 172
>   HorzScrollBar.Page = 171
>   VertScrollBar.Page = 55
>   ActiveControl = Edit1
>   Caption = 'Form1'
>   ClientHeight = 56
>   ClientWidth = 172
>   LCLVersion = '0.9.25'
>   object Edit1: TEdit
>     Left = 24
>     Height = 23
>     Top = 16
>     Width = 80
>     TabOrder = 0
>     Text = 'çççççç'
>   end
> end
> ==============================================
> unit_utf8.pas
> 
> 
> unit unit_utf8;
> 
> {$mode objfpc}{$H+}
> 
> interface
> 
> uses
>   Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs,
> StdCtrls;
> 
> type
> 
>   { TForm1 }
> 
>   TForm1 = class(TForm)
>     Edit1: TEdit;
>   private
>     { private declarations }
>   public
>     { public declarations }
>   end;
> 
> var
>   Form1: TForm1;
> 
> implementation
> 
> initialization
>   {$I unit_utf8.lrs}
> 
> end.
> 
> 
> 
> 2008/6/5 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> 
> > On Thu, 5 Jun 2008 10:12:59 -0300
> > "Osvaldo Filho" <arquivostcf at gmail.com> wrote:
> >
> > >[...]
> > > WARNING: Macro not defined: "Target_OS".
> >
> > Use Find in Files and correct them to TargetOS. It is probably one
> > of the installed packages.
> >
> >
> > > TMainIDE.DoNewProject A
> > >[...]
> > > TMainIDE.DoLoadLFM A /home/eu/mq1/temp/teste/utf8.pas
> > > IsPartOfProject=True QuickCheckLFMBuffer
> > >[...]
> > >
> > > (lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to
> > > pango_layout_set_text()
> >
> > Your utf8.pas is not UTF-8.
> > Can you post parts of it?
> >
> >
> > >[...]
> > > TApplication.HandleException Access violation
> > >   Stack trace:
> > >   $08068BA9
> > >   $B7A0C081
> > >   $B7A0DBF8
> > >   $B7A10E5E
> > >   $B7A113AC
> > >   $B7C8E063
> > >   $0821867F  TGTKWIDGETSET__APPPROCESSMESSAGES,  line 1162 of
> > > /home/eu/mq1/programas/pascal/lazarus/lcl/interfaces/gtk/gtkwidgetset.inc
> >
> > Hmm. Not much info. Try starting the IDE with gdb and create a
> > backtrace:
> > http://wiki.lazarus.freepascal.org/Creating_a_Backtrace_with_GDB
> >
> >
> > >[...]
> > > UTF-8 Problem
> > > I change text on edit1.text, save form, close all, restart
> > > Lazarus, when i open form it
> > > change the content of text edit.
> > >
> > > Lazarus svn gtk2
> > > Freepascal 2.2.3 (svn fixes)
> > >
> > > Ubuntu Hardy Heron (8.04)
> > >
> > > LOCALE
> > >
> > > eu at deskx-mv:~$ locale
> > >
> > > LANG=pt_BR.UTF-8
> > >[...]
> >
> > Mattias
> > _______________________________________________
> > Lazarus mailing list
> > Lazarus at lazarus.freepascal.org
> > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
> >




More information about the Lazarus mailing list