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
Some Lazarus documentatio...
by
dsiders
[
Today
at 03:09:48 am]
FPC Unleashed (async/awai...
by
flowCRANE
[
Today
at 01:19:48 am]
Review from FreePascal
by
n7800
[July 21, 2026, 10:56:35 pm]
TCHATGPT — An Artificial ...
by
marcelomaurinmartins@gmai
[July 21, 2026, 10:38:28 pm]
Network drop and firewall
by
kupferstecher
[July 21, 2026, 07:11:07 pm]
Rounding issues (only wit...
by
Hartmut
[July 21, 2026, 06:46:35 pm]
How to check my own certi...
by
LeP
[July 21, 2026, 05:04:49 pm]
How can I get names of CO...
by
Thaddy
[July 21, 2026, 04:55:08 pm]
Accessing VRAM memory wit...
by
Thaddy
[July 21, 2026, 01:31:19 pm]
Fixed an RV32ec compiler ...
by
ccrause
[July 21, 2026, 12:04:05 pm]
[SOLVED} Copying existing...
by
Davo
[July 21, 2026, 11:59:45 am]
TDWEdit
by
Ed78z
[July 21, 2026, 09:53:10 am]
Elite Arcade
by
Zvoni
[July 21, 2026, 08:17:20 am]
Which quantized model wor...
by
LeP
[July 20, 2026, 10:34:07 pm]
PasFLTK - Binding for FLT...
by
Dibo
[July 20, 2026, 10:26:31 pm]
[Closed]Indy10 hangs the ...
by
marcov
[July 20, 2026, 03:52:59 pm]
Slow app start on M5 MacB...
by
pleumann
[July 20, 2026, 03:07:54 pm]
Lazarus components
by
threedslider
[July 20, 2026, 02:37:23 pm]
Many recent books on Laza...
by
threedslider
[July 20, 2026, 02:27:45 pm]
[Solved]Setting the CURSO...
by
jamie
[July 20, 2026, 11:33:52 am]
Lazarus for Windows on aa...
by
Thaddy
[July 20, 2026, 09:39:06 am]
FastCGI vs. CGI
by
egsuh
[July 20, 2026, 06:33:08 am]
I have made some progress...
by
onionmixer
[July 20, 2026, 12:32:08 am]
Lazarus Bugfix Release 4....
by
n7800
[July 19, 2026, 10:59:09 pm]
Can not load postgres cli...
by
martinm
[July 19, 2026, 10:17:31 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Bug in: format('%n',[double_number]) (Read 4545 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: 2707
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: 2707
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