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