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
StrToDateTime problems
by
andyH
[
Today
at 09:05:56 pm]
Picture Process with BGRA...
by
circular
[
Today
at 08:05:53 pm]
What was your first compu...
by
LeP
[
Today
at 07:31:09 pm]
Why does FPC behave this ...
by
VisualLab
[
Today
at 07:31:04 pm]
Parametrized Access SQL Q...
by
konikula
[
Today
at 07:21:36 pm]
How to forward a Class in...
by
Hartmut
[
Today
at 07:04:01 pm]
[SOLVED] Average color
by
LeP
[
Today
at 06:51:24 pm]
set zero values not to b...
by
wp
[
Today
at 06:25:48 pm]
HELP Why the WriteRowHeig...
by
wp
[
Today
at 06:22:24 pm]
building a Calculator usi...
by
Dzandaa
[
Today
at 03:51:20 pm]
How can Lazarus implement...
by
Tommi
[
Today
at 03:46:47 pm]
how to relay a button cli...
by
srvaldez
[
Today
at 01:15:46 pm]
what was your first pasca...
by
BSaidus
[
Today
at 01:01:32 pm]
[SOLVED] Transparent back...
by
alpine
[
Today
at 11:28:56 am]
Lazarus and Libre Office
by
sydenis
[
Today
at 11:07:38 am]
RTTIPropertyGrid expand
by
ig
[
Today
at 10:47:03 am]
[SOLVED] Able to access p...
by
vinntec
[
Today
at 09:27:53 am]
How to execute PKZIPC fro...
by
Hozso
[
Today
at 08:17:36 am]
Jerky animation (windows)
by
Roland57
[
Today
at 07:19:29 am]
RPNCalc in Lazarus
by
tailkinker
[
Today
at 04:42:09 am]
Any TStringBuilder class ...
by
ALLIGATOR
[
Today
at 04:07:30 am]
Why there is no formula f...
by
dodgex
[
Today
at 02:56:29 am]
how to comunicate among t...
by
jamie
[
Today
at 12:13:21 am]
Right-anchored zoom
by
kapibara
[January 11, 2026, 11:54:30 pm]
CPC464 Cdt to Wav Convert...
by
Gigatron
[January 11, 2026, 10:57:01 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Bug in: format('%n',[double_number]) (Read 4500 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: 2671
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: 2671
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