Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-06

Fwd: UTF-8 Problem

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Osvaldo Filho

from terminal with command startlazarus:
======================
eu at mq1-mv:~/mq1/programas/pascal/lazarus$ ./startlazarus TLazarusManager.Run starting /home/eu/mq1/programas/pascal/lazarus/lazarus ...
TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/eu/.lazarus"
SecondaryConfigPath="/etc/lazarus"
NOTE: codetools config file not found - using defaults NOTE: help options config file not found - using defaults WARNING: Macro not defined: "Target_OS".
TMainIDE.DoNewProject A
WARNING: Macro not defined: "Target_OS".
[TCustomFormEditor.CreateComponent] Class='TForm'
TMainIDE.DoNewEditorFile end unit1.pas
[TCustomFormEditor.CreateComponent] Class='TEdit'
Parent is 'Form1:TForm1'
TMainIDE.OnPropHookPersistentAdded A Edit1:TEdit
WARNING: Macro not defined: "Target_OS".
TPkgManager.AddUnitDependenciesForComponentClasses Extending Uses unit1.pas StdCtrls
[TEventsCodeTool.CompleteComponent] CurComponent=Edit1:TEdit TCustomFormEditor.WriterFindAncestor Component=Form1:TForm1 Ancestor=nil TCustomFormEditor.WriterFindAncestor Component=Form1:TForm1 Ancestor=nil WARNING: Macro not defined: "Target_OS".
WARNING: Macro not defined: "Target_OS".
TMainIDE.DoLoadLFM A /home/eu/mq1/temp/teste/utf8.pas IsPartOfProject=True QuickCheckLFMBuffer LFMBuffer=/home/eu/mq1/temp/teste/utf8.lfm TJITComponentList.AddJITComponentFromStream.ReadStream Reading: FCurReadJITComponent=:TForm1 StreamClass=TForm1
TCustomFormEditor.JITListFindClass Searched=TEdit Found=TEdit

(lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
TMainIDE.OnDesignerViewLFM /home/eu/mq1/temp/teste/utf8.pas TMainIDE.DoLoadLFM A /home/eu/mq1/temp/teste/utf8.pas IsPartOfProject=True QuickCheckLFMBuffer LFMBuffer=/home/eu/mq1/temp/teste/utf8.lfm TJITComponentList.AddJITComponentFromStream.ReadStream Reading: FCurReadJITComponent=:TForm1 StreamClass=TForm1
TCustomFormEditor.JITListFindClass Searched=TEdit Found=TEdit

(lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
TCustomFormEditor.WriterFindAncestor Component=Form1:TForm1 Ancestor=nil TCustomFormEditor.WriterFindAncestor Component=Form1:TForm1 Ancestor=nil TMainIDE.DoLoadLFM A /home/eu/mq1/temp/teste/utf8.pas IsPartOfProject=True QuickCheckLFMBuffer LFMBuffer=/home/eu/mq1/temp/teste/utf8.lfm TJITComponentList.AddJITComponentFromStream.ReadStream Reading: FCurReadJITComponent=:TForm1 StreamClass=TForm1
TCustomFormEditor.JITListFindClass Searched=TEdit Found=TEdit TMainIDE.OnDesignerViewLFM /home/eu/mq1/temp/teste/utf8.pas

(lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
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 $08080259 TAPPLICATION__HANDLEMESSAGE, line 975 of ./include/application.inc
$0808058F TAPPLICATION__RUNLOOP, line 1086 of ./include/application.inc $080C4723 TWIDGETSET__APPRUN, line 49 of ./include/interfacebase.inc $0808054A TAPPLICATION__RUN, line 1073 of ./include/application.inc $0805C072 main, line 99 of lazarus.pp

(lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(lazarus:8738): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
LAZARUS END - cleaning up ...
[TMainIDE.Destroy] A
[TMainIDE.Destroy] B -> inherited Destroy... TMainIDE [TMainIDE.Destroy] END
eu at mq1-mv:~/mq1/programas/pascal/lazarus$
==============================================

---------- Forwarded message ----------

Earlier message 39 lines
From: Osvaldo Filho Date: 2008/6/4 Subject: UTF-8 Problem To: 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 LC_CTYPE="pt_BR.UTF-8" LC_NUMERIC="pt_BR.UTF-8" LC_TIME="pt_BR.UTF-8" LC_COLLATE="pt_BR.UTF-8" LC_MONETARY="pt_BR.UTF-8" LC_MESSAGES="pt_BR.UTF-8" LC_PAPER="pt_BR.UTF-8" LC_NAME="pt_BR.UTF-8" LC_ADDRESS="pt_BR.UTF-8" LC_TELEPHONE="pt_BR.UTF-8" LC_MEASUREMENT="pt_BR.UTF-8" LC_IDENTIFICATION="pt_BR.UTF-8" LC_ALL= eu at deskx-mv:~$ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080605/f81345fa/attachment-0001.html

Reply by email

Mattias Gaertner
to Osvaldo Filho
[...] WARNING: Macro not defined: "Target_OS".

Use Find in Files and correct them to TargetOS. It is probably one of the installed packages.

Show quoted text 8 lines
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?

Show quoted text 11 lines
[...] 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

Show quoted text 17 lines
[...] 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

Reply by email

Osvaldo Filho
to Mattias Gaertner

Please a bug is registered at: http://bugs.freepascal.org/view.php?id=11415

mq1 at ltspserver00:~/test-utf8$ gdb prj_utf8
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) break fpc_raiseexception
Breakpoint 1 at 0x80694d6
(gdb) run
Starting program: /home/mq1/test-utf8/prj_utf8
[Thread debugging using libthread_db enabled]
[New Thread 0xb73af720 (LWP 15380)]

(prj_utf8:15380): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(prj_utf8:15380): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

Program exited normally.
(gdb) backtrace
No stack.
(gdb)

2008/6/5 Mattias Gaertner :

Show quoted text 64 lines
On Thu, 5 Jun 2008 10:12:59 -0300 "Osvaldo Filho" 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 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080605/713df612/attachment.html

Reply by email

Osvaldo Filho
to Mattias Gaertner: On Thu, 5 Jun 2008 10:12:59 -0300 Use Find in Files and correct them to TargetOS. It is…

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 :

Show quoted text 64 lines
On Thu, 5 Jun 2008 10:12:59 -0300 "Osvaldo Filho" 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 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080605/a3f6d806/attachment-0001.html

Reply by email

Mattias Gaertner
to Osvaldo Filho

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

Mattias

Show quoted text 127 lines
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 : > On Thu, 5 Jun 2008 10:12:59 -0300 > "Osvaldo Filho" 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 > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email