Sign in Join

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

Mailing lists / lazarus / 2013-09

IDE - SynEdit not accept accented characters

18 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Junior

Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04)

(? - ? - ? - ? - ? - ? ...)

ShowMessage('? ?');

appears

ShowMessage('E A');

Reply by email

Mattias Gaertner
to Junior
Show quoted text 9 lines
Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) (? - ? - ? - ? - ? - ? ...) ShowMessage('? ?'); appears ShowMessage('E A');

It works here on Ubuntu 13.10.

Maybe your pascal unit is not stored UTF-8?
See Right Click in source editor / file settings / Encoding. Do you use {$mode objfpc}{$H+} ?

Mattias

Reply by email

Mattias Gaertner
to Mattias Gaertner
Show quoted text 14 lines
On Sun, 08 Sep 2013 09:14:15 -0300 Junior wrote: > Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) > > (? - ? - ? - ? - ? - ? ...) > > ShowMessage('? ?'); > > appears > > ShowMessage('E A'); It works here on Ubuntu 13.10.

I meant 13.04

Maybe your pascal unit is not stored UTF-8? See Right Click in source editor / file settings / Encoding. Do you use {$mode objfpc}{$H+} ?

Mattias

Reply by email

Junior
to Mattias Gaertner

Lazarus 1.1 r42684M FPC 2.6.2 i386-linux-gtk 2

Was a recent update

UTF8 cheked, see:

http://imagebin.org/270291

Mattias Gaertner wrote 30 lines
On Sun, 8 Sep 2013 22:21:16 +0200 Mattias Gaertner wrote: > On Sun, 08 Sep 2013 09:14:15 -0300 > Junior wrote: > >> Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) >> >> (? - ? - ? - ? - ? - ? ...) >> >> ShowMessage('? ?'); >> >> appears >> >> ShowMessage('E A'); > It works here on Ubuntu 13.10. I meant 13.04 > Maybe your pascal unit is not stored UTF-8? > See Right Click in source editor / file settings / Encoding. > Do you use {$mode objfpc}{$H+} ? Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Junior
Show quoted text 7 lines
Lazarus 1.1 r42684M FPC 2.6.2 i386-linux-gtk 2 Was a recent update UTF8 cheked, see: http://imagebin.org/270291

What is your Linux locale?

In a terminal type the command "locale".

Mattias

Show quoted text 40 lines
Em 08-09-2013 17:28, Mattias Gaertner escreveu: > On Sun, 8 Sep 2013 22:21:16 +0200 > Mattias Gaertner wrote: > >> On Sun, 08 Sep 2013 09:14:15 -0300 >> Junior wrote: >> >>> Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) >>> >>> (? - ? - ? - ? - ? - ? ...) >>> >>> ShowMessage('? ?'); >>> >>> appears >>> >>> ShowMessage('E A'); >> It works here on Ubuntu 13.10. > I meant 13.04 > > >> Maybe your pascal unit is not stored UTF-8? >> See Right Click in source editor / file settings / Encoding. >> Do you use {$mode objfpc}{$H+} ? > > Mattias > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Junior
to Mattias Gaertner

LANG=pt_BR.UTF-8
LANGUAGE=pt_BR:pt:pt_PT:en
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=

until recently was working correctly.

Mattias Gaertner wrote 59 lines
On Sun, 08 Sep 2013 18:02:16 -0300 Junior wrote: > Lazarus 1.1 r42684M FPC 2.6.2 i386-linux-gtk 2 > > Was a recent update > > UTF8 cheked, see: > > http://imagebin.org/270291 What is your Linux locale? In a terminal type the command "locale". Mattias > > Em 08-09-2013 17:28, Mattias Gaertner escreveu: >> On Sun, 8 Sep 2013 22:21:16 +0200 >> Mattias Gaertner wrote: >> >>> On Sun, 08 Sep 2013 09:14:15 -0300 >>> Junior wrote: >>> >>>> Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) >>>> >>>> (? - ? - ? - ? - ? - ? ...) >>>> >>>> ShowMessage('? ?'); >>>> >>>> appears >>>> >>>> ShowMessage('E A'); >>> It works here on Ubuntu 13.10. >> I meant 13.04 >> >> >>> Maybe your pascal unit is not stored UTF-8? >>> See Right Click in source editor / file settings / Encoding. >>> Do you use {$mode objfpc}{$H+} ? >> Mattias >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Junior
to Mattias Gaertner: On Sun, 08 Sep 2013 18:02:16 -0300 What is your Linux locale? In a terminal type the…

It seems that the problem is not in Lazarus, I have compiled a very old version and still the error persists.

Mattias Gaertner wrote 59 lines
On Sun, 08 Sep 2013 18:02:16 -0300 Junior wrote: > Lazarus 1.1 r42684M FPC 2.6.2 i386-linux-gtk 2 > > Was a recent update > > UTF8 cheked, see: > > http://imagebin.org/270291 What is your Linux locale? In a terminal type the command "locale". Mattias > > Em 08-09-2013 17:28, Mattias Gaertner escreveu: >> On Sun, 8 Sep 2013 22:21:16 +0200 >> Mattias Gaertner wrote: >> >>> On Sun, 08 Sep 2013 09:14:15 -0300 >>> Junior wrote: >>> >>>> Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) >>>> >>>> (? - ? - ? - ? - ? - ? ...) >>>> >>>> ShowMessage('? ?'); >>>> >>>> appears >>>> >>>> ShowMessage('E A'); >>> It works here on Ubuntu 13.10. >> I meant 13.04 >> >> >>> Maybe your pascal unit is not stored UTF-8? >>> See Right Click in source editor / file settings / Encoding. >>> Do you use {$mode objfpc}{$H+} ? >> Mattias >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Graeme Geldenhuys
to Junior
Junior wrote
It seems that the problem is not in Lazarus, I have compiled a very old version and still the error persists.

Did you also use a different config directory for the old Lazarus version? Otherwise the error could still be Lazarus, but in the config files - eg: editor settings.

What is your editor line height? What is your "extra line spacing" set at? What font are you using in the editor?

I've just tested some v1.1 version of Lazarus (checked out 2-3 months ago) and those characters display fine here under FreeBSD and Lazarus IDE compiled against GTK2.

Regards,
Graeme

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 7 lines
On 2013-09-08 23:26, Junior wrote: > It seems that the problem is not in Lazarus, I have compiled a very old > version and still the error persists. Did you also use a different config directory for the old Lazarus version? Otherwise the error could still be Lazarus, but in the config files - eg: editor settings.

The source editor shows it correctly.
The bug appears in his application via ShowMessage.

Show quoted text 6 lines
What is your editor line height? What is your "extra line spacing" set at? What font are you using in the editor? I've just tested some v1.1 version of Lazarus (checked out 2-3 months ago) and those characters display fine here under FreeBSD and Lazarus IDE compiled against GTK2.

Mattias

Reply by email

Junior
to Mattias Gaertner: On Sun, 08 Sep 2013 18:02:16 -0300 What is your Linux locale? In a terminal type the…

I rebooted the computer, tested it with gEdit (text editor), LibreOffice, Terminal and everything working.

I upgraded Lazarus, deleted the config folder (. Lazarus), compiled in Terminal (make clean all).

Does not work accentuation. The same thing!

Anybody else wearing Ubuntu Linux 12:04.3 updated?

Mattias Gaertner wrote 59 lines
On Sun, 08 Sep 2013 18:02:16 -0300 Junior wrote: > Lazarus 1.1 r42684M FPC 2.6.2 i386-linux-gtk 2 > > Was a recent update > > UTF8 cheked, see: > > http://imagebin.org/270291 What is your Linux locale? In a terminal type the command "locale". Mattias > > Em 08-09-2013 17:28, Mattias Gaertner escreveu: >> On Sun, 8 Sep 2013 22:21:16 +0200 >> Mattias Gaertner wrote: >> >>> On Sun, 08 Sep 2013 09:14:15 -0300 >>> Junior wrote: >>> >>>> Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) >>>> >>>> (? - ? - ? - ? - ? - ? ...) >>>> >>>> ShowMessage('? ?'); >>>> >>>> appears >>>> >>>> ShowMessage('E A'); >>> It works here on Ubuntu 13.10. >> I meant 13.04 >> >> >>> Maybe your pascal unit is not stored UTF-8? >>> See Right Click in source editor / file settings / Encoding. >>> Do you use {$mode objfpc}{$H+} ? >> Mattias >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Junior
to Mattias Gaertner: On Sun, 08 Sep 2013 23:54:08 +0100 The source editor shows it correctly. The bug appears…

Works on all programs on my Linux does not work in Lazarus.

see: http://imagebin.org/270316

Mattias Gaertner wrote 28 lines
On Sun, 08 Sep 2013 23:54:08 +0100 Graeme Geldenhuys wrote: > On 2013-09-08 23:26, Junior wrote: >> It seems that the problem is not in Lazarus, I have compiled a very old >> version and still the error persists. > Did you also use a different config directory for the old Lazarus > version? Otherwise the error could still be Lazarus, but in the config > files - eg: editor settings. The source editor shows it correctly. The bug appears in his application via ShowMessage. > What is your editor line height? What is your "extra line spacing" set > at? What font are you using in the editor? > > I've just tested some v1.1 version of Lazarus (checked out 2-3 months > ago) and those characters display fine here under FreeBSD and Lazarus > IDE compiled against GTK2. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Bart
to Junior
Junior wrote
Works on all programs on my Linux does not work in Lazarus.

OK, let's make it even more simple.
What does ShowMessage(#$C3#$84#$C3#$8B#$C3#$8F#$C3#$96#$C3#$9C) show? (#$C3#$84#$C3#$8B#$C3#$8F#$C3#$96#$C3#$9C is the UTF8 sequence for '?????)'

If this also dos not show accented chars we know the problem is in ShowMessage, and may have nothing to do with the IDE.

Bart

Reply by email

Graeme Geldenhuys
to Bart
Bart wrote
OK, let's make it even more simple. What does ShowMessage(#$C3#$84#$C3#$8B#$C3#$8F#$C3#$96#$C3#$9C) show?
From Junior's screenshots it seem the display problem which he is

referring to, is in the Lazarus IDE (editor) - nothing to do with the ShowMessage() call.

Junior, can you confirm?

Regards,
Graeme

Reply by email

Junior
to Graeme Geldenhuys

Yes, I confirm.

The problem is in the Lazarus IDE (editor).

Graeme Geldenhuys wrote 21 lines
On 2013-09-09 11:32, Bart wrote: > OK, let's make it even more simple. > What does ShowMessage(#$C3#$84#$C3#$8B#$C3#$8F#$C3#$96#$C3#$9C) show? >From Junior's screenshots it seem the display problem which he is referring to, is in the Lazarus IDE (editor) - nothing to do with the ShowMessage() call. Junior, can you confirm? Regards, Graeme -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Martin
to Junior: Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) (? - ? - ? - ? - ? - ? ...)…
Junior wrote 9 lines
Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) (? - ? - ? - ? - ? - ? ...) ShowMessage('? ?'); appears ShowMessage('E A');

I can confirm this on
Fedora 18
gnome 3.6.3

dead keys to not work

german key layout:

- pressing the key for any accent on the next char: nothing (expected/correct)
- pressing the key for any accent on the next char TWICE: showing the accent (actually backtick) (expected/correct)
- pressing the key for any accent on the next char, then a vocal that can be accented: nothing (wrong)

works in gedit on the same system/ same settings

Reply by email

Martin
to Martin
Martin wrote 14 lines
On 08/09/2013 13:14, Junior wrote: > Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) > > (? - ? - ? - ? - ? - ? ...) > > ShowMessage('? ?'); > > appears > > ShowMessage('E A'); I can confirm this on Fedora 18 gnome 3.6.3

It was introduced in
Revision: 42581
Author: juha
Date: 04 September 2013 01:06:33
Message:
LCL: Fix accent chars in GTK2. Remove Gtk2LatinAccents define after testing. Issues #24750 and #22507. Original patch from ?derson C?ssio ----
Modified : /trunk/lcl/interfaces/gtk2/gtk2proc.inc

Show quoted text 21 lines
dead keys to not work german key layout: - pressing the key for any accent on the next char: nothing (expected/correct) - pressing the key for any accent on the next char TWICE: showing the accent (actually backtick) (expected/correct) - pressing the key for any accent on the next char, then a vocal that can be accented: nothing (wrong) works in gedit on the same system/ same settings -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Juha Manninen
to Martin
Martin wrote 9 lines
It was introduced in Revision: 42581 Author: juha Date: 04 September 2013 01:06:33 Message: LCL: Fix accent chars in GTK2. Remove Gtk2LatinAccents define after testing. Issues #24750 and #22507. Original patch from ?derson C?ssio ---- Modified : /trunk/lcl/interfaces/gtk2/gtk2proc.inc

Ok, now it appparently got testers. The define was there for a long time and nobody complained.
These are nasty errors because they don't happen in every machine or locale. I detached myself from the issue. Somebody else can continue.

Regards,
Juha

Reply by email