View Issue Details

IDProjectCategoryView StatusLast Update
0030253LazarusLCLpublic2016-06-12 15:36
ReporterMikhail Assigned ToOndrej Pokorny  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86OSWindows 
Product Version1.7 (SVN) 
Summary0030253: FormatFloat('#,'...); Become working incorrect after changing screen resolution
DescriptionNumber groups divisor in FormatFloat function becomes invalid after screen reso change
Steps To Reproduce<code>
procedure TForm1.Button1Click(Sender: TObject);
 var s:string;
begin
  s:=formatfloat('#,', 1500000000.0);
  Memo1.Lines.Add(s);
end;
</code>

Press button1, change screen resolution, press button1 again
Additional Information---Output of program---
Memo1
1,500,000,000
---after screen resolution has been changed---
1?500?000?000

TagsNo tags attached.
Fixed in Revision52480
LazTarget-
WidgetsetWin32/Win64
Attached Files

Relationships

related to 0029059 closedBart Broersma Lazarus WinCE projects fail to compile 
related to 0028686 new FPC FormatSettings.ThousandSeparator don't accept multbyte character 
related to 0026803 feedbackMichael Van Canneyt FPC FloatToStrF inserts wrong thousand separator 

Activities

Lagunov Aleksey

2016-06-09 12:27

reporter   ~0093090

In main project file (*.lpr) after line
  Application.Initialize;

add line
  Application.UpdateFormatSettings:=false;

after this work normal

Ondrej Pokorny

2016-06-12 07:59

developer   ~0093142

Will be merged to 1.6.2

Issue History

Date Modified Username Field Change
2016-06-09 09:50 Mikhail New Issue
2016-06-09 12:27 Lagunov Aleksey Note Added: 0093090
2016-06-12 06:08 Ondrej Pokorny Assigned To => Ondrej Pokorny
2016-06-12 06:08 Ondrej Pokorny Status new => assigned
2016-06-12 06:53 Ondrej Pokorny Relationship added related to 0029059
2016-06-12 07:27 Ondrej Pokorny Relationship added related to 0028686
2016-06-12 07:59 Ondrej Pokorny Fixed in Revision => 52480
2016-06-12 07:59 Ondrej Pokorny LazTarget => -
2016-06-12 07:59 Ondrej Pokorny Note Added: 0093142
2016-06-12 07:59 Ondrej Pokorny Status assigned => resolved
2016-06-12 07:59 Ondrej Pokorny Resolution open => fixed
2016-06-12 15:36 Martin Friebe Relationship added related to 0026803