View Issue Details

IDProjectCategoryView StatusLast Update
0036480LazarusLazUtilspublic2020-01-03 10:25
ReporterOndrej PokornyAssigned ToOndrej Pokorny 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.1 (SVN)Product Build 
Target Version2.2Fixed in Version 
Summary0036480: TEncoding.ANSI regression - it's UTF-8 now in Lazarus
DescriptionIn Delphi and Lazarus, I used:
  S := TStringList.Create;
  S.LoadFromFile('ansi1252.txt', TEncoding.ANSI);
to load a file in WIN-ANSI (on my PC Win-1252).

This is not possible any more because TEncoding.ANSI is UTF-8 in Lazarus.

The revision that changed this is r61976.
Steps To ReproduceSee the attached project.
Additional InformationI haven't found any information about this breaking change in https://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes

If this is wanted, tell me how I can load a file in WIN-ANSI (on my PC Win-1252, but on different PCs a different one) encoding and document it on the 2.2.0 release notes page.
TagsNo tags attached.
Fixed in Revision62474
LazTarget-
WidgetsetWin32/Win64
Attached Files

Relationships

related to 0036481 closedOndrej Pokorny ANSI ODBC regression - strings are read in wrong encoding 

Activities

Ondrej Pokorny

2019-12-26 14:10

developer  

TEncodingANSI.lpr (200 bytes)

Ondrej Pokorny

2019-12-26 14:10

developer  

ansi1252.txt (4 bytes)
��
ansi1252.txt (4 bytes)

Issue History

Date Modified Username Field Change
2019-12-26 14:09 Ondrej Pokorny New Issue
2019-12-26 14:10 Ondrej Pokorny File Added: TEncodingANSI.lpr
2019-12-26 14:10 Ondrej Pokorny File Added: ansi1252.txt
2019-12-26 15:01 Ondrej Pokorny Additional Information Updated View Revisions
2019-12-26 15:01 Ondrej Pokorny LazTarget => -
2019-12-26 15:01 Ondrej Pokorny Widgetset Win32/Win64 => Win32/Win64
2019-12-26 15:50 Bart Broersma Relationship added related to 0036481
2020-01-03 10:24 Ondrej Pokorny Assigned To => Ondrej Pokorny
2020-01-03 10:24 Ondrej Pokorny Status new => assigned
2020-01-03 10:24 Ondrej Pokorny Status assigned => resolved
2020-01-03 10:24 Ondrej Pokorny Resolution open => fixed
2020-01-03 10:24 Ondrej Pokorny Fixed in Revision => 62474
2020-01-03 10:24 Ondrej Pokorny Widgetset Win32/Win64 => Win32/Win64
2020-01-03 10:25 Ondrej Pokorny Status resolved => closed