Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Using the Lazarus IDE
»
Debugger
»
Debugging unicode strings?
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
FAQ
Wiki
Bugtracker
Packages
IRC channel
Developer Blog
Follow us on Twitter
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: Debugging unicode strings? (Read 1423 times)
EganSolo
Full Member
Posts: 135
Debugging unicode strings?
«
on:
February 21, 2017, 12:36:37 am »
Hey guys, how do we setup the watch window to display unicode strings?
I've got a simple program I'm writing to test unicode capabilities. I'm having an issue with the command line display. It won't display the upper case accented A, as in À.
So, I set-up a breakpoint and added two variables to the watch window, this image shows you how they are displayed and the code shows you what I was expecting to see:
Code: Pascal
[Select]
S1
=
'bonjour sérénitàa'
;
S2
=
'sérénitàa'
;
Is there a switch I'm missing to get either GDB or Lazarus or fpc to do the right thing?
Logged
Martin_fr
Administrator
Hero Member
Posts: 4553
Re: Debugging unicode strings?
«
Reply #1 on:
February 21, 2017, 12:48:08 am »
Unfortunately its not implemented.
Logged
Thaddy
Hero Member
Posts: 5795
Re: Debugging unicode strings?
«
Reply #2 on:
February 21, 2017, 08:56:09 am »
Yes. It's a GDB issue too.
But:
For linux console, try
unicode_start
to force unicode mode (most Linux consoles are already UTF8, but just in case)
For windows console, try
chcp 65001
to force unicode mode (or cmd.exe /U )
Alternatively check what your code page is, by typing just chcp. Then you can also adapt your code to use that codepage....
Then run your program. Plz report back if it worked.
«
Last Edit: February 21, 2017, 09:05:42 am by Thaddy
»
Logged
recommends {$macro on}{$define Silly:=ObjFpc}
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Using the Lazarus IDE
»
Debugger
»
Debugging unicode strings?
Recent
Material Design
by
lainz
[
Today
at 12:43:01 am]
New version of BGRABitmap
by
lainz
[
Today
at 12:41:47 am]
Blogs
by
RAW
[
Today
at 12:21:17 am]
How do I get the PLAN fro...
by
RedOctober
[
Today
at 12:17:54 am]
Visual Pascal Community E...
by
Researching
[
Today
at 12:11:03 am]
Keeping track of project ...
by
valdir.marcos
[April 24, 2018, 11:57:07 pm]
Lazarus's missing Delphi ...
by
valdir.marcos
[April 24, 2018, 11:55:12 pm]
CAD program written in La...
by
Edson
[April 24, 2018, 11:44:38 pm]
Sizable TPanel
by
arneolav
[April 24, 2018, 11:29:08 pm]
Import excel to dbgird
by
rvk
[April 24, 2018, 11:15:48 pm]