Skip to content

Format() shows different result for same argument

Summary

Format('1: %s 2: %s', [Foo(Bar(C)), Foo(Bar(C))]) shows different result for argument 1 and 2

System Information

  • Operating system: Windows
  • Processor architecture: x86-64
  • Compiler version: 3.2.2
  • Device: Computer

Steps to reproduce

Execute sample project

Example Project

utffmt.lpr

What is the current bug behavior?

The last line shows F: 1: sesi<C3><B3>n 2: sesi<F3>n

What is the expected (correct) behavior?

The last line should look like F: 1: sesi<C3><B3>n 2: sesi<C3><B3>n

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information