Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Bug in: format('%n',[double_number])
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
ThorVG - test (lightweigh...
by
Boleeman
[
Today
at 01:47:56 pm]
Frustrating Error When us...
by
TYDQ
[
Today
at 01:43:32 pm]
Questions from a Windows ...
by
anse
[
Today
at 01:18:40 pm]
AdvancedHTTPServer: A Go-...
by
CynicRus
[
Today
at 01:05:28 pm]
We are starting to use La...
by
ALLIGATOR
[
Today
at 12:50:41 pm]
Status of FPC 3.4.0 or FP...
by
gidesa
[
Today
at 12:35:41 pm]
Notetask 1.1.1 - Free cro...
by
AlexanderT
[
Today
at 12:00:08 pm]
The Future of FPC
by
Martin_fr
[
Today
at 11:53:35 am]
Fast Canvas Library V1.05...
by
backprop
[
Today
at 11:36:25 am]
How to determine the unkn...
by
CM630
[
Today
at 11:22:22 am]
Lazarus/FreePascal Bug
by
cdbc
[
Today
at 10:52:58 am]
how to enable multihelper...
by
dsiders
[
Today
at 03:35:27 am]
Bee Hive solitaire
by
TBMan
[
Today
at 03:22:09 am]
AI Created Music
by
Tony Stone
[
Today
at 03:02:08 am]
Send form to true left an...
by
mas steindorff
[
Today
at 02:39:34 am]
Help needed compiling
by
jamie
[
Today
at 02:33:02 am]
Free Pascal for a small e...
by
dbannon
[
Today
at 02:24:49 am]
Debian removes FPC/Lazaru...
by
dbannon
[
Today
at 02:09:35 am]
makefiles
by
PascalDragon
[February 12, 2026, 11:37:48 pm]
; after then
by
Curt Carpenter
[February 12, 2026, 11:36:16 pm]
[ANN] fpGUI Toolkit v2.0....
by
Fred vS
[February 12, 2026, 10:45:14 pm]
TRichMemo EM_FORMATRANGE ...
by
AgriMensor
[February 12, 2026, 08:50:07 pm]
fpGUI Toolkit v2.0.1 has ...
by
Roland57
[February 12, 2026, 08:22:06 pm]
[SOLVED] Defining TDBDrop...
by
1HuntnMan
[February 12, 2026, 08:08:22 pm]
Problems in drawing an ar...
by
simsee
[February 12, 2026, 07:52:25 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Bug in: format('%n',[double_number]) (Read 4506 times)
krexon
Jr. Member
Posts: 80
Bug in: format('%n',[double_number])
«
on:
August 05, 2010, 10:21:02 am »
Command:
Code:
[Select]
format('%n',[123456789.01])
should give '123 456 789.01', bu gives '123?456?789,01' (question marks instead of spaces)
Is it a bug, because in Delphi everything is OK
I use 0.9.29 SVN 26989 FPC 2.5.1
Logged
Marc
Administrator
Hero Member
Posts: 2673
Re: Bug in: format('%n',[double_number])
«
Reply #1 on:
August 05, 2010, 11:19:33 am »
By default fpc uses a "nonbreakable space" character for this (it user settable in a fpc variable I forgot). Lazarus uses UTF8 for strings, this space character lies outside the lower ASCII values so it results in a invalid UTF8 character, which gets displayed as ?
Set this variable to space or the UTF8 equivalent of "nonbreakable space"
Logged
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the
bug tracker
krexon
Jr. Member
Posts: 80
Re: Bug in: format('%n',[double_number])
«
Reply #2 on:
August 05, 2010, 12:44:32 pm »
Sorry for stupid question, but where should I change this variable?
EDIT:
I found
Code:
[Select]
ThousandSeparator:=' ';
«
Last Edit: August 05, 2010, 12:47:39 pm by krexon
»
Logged
Marc
Administrator
Hero Member
Posts: 2673
Re: Bug in: format('%n',[double_number])
«
Reply #3 on:
August 06, 2010, 12:29:00 am »
Its not a stupid question, I only knew that there was one, not which
Logged
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the
bug tracker
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Bug in: format('%n',[double_number])
TinyPortal
© 2005-2018