Recent

Author Topic: Purpose of TProcessUTF8  (Read 987 times)

LemonParty

  • Sr. Member
  • ****
  • Posts: 439
Purpose of TProcessUTF8
« on: March 09, 2026, 04:33:41 pm »
What is the purpose of TProcessUTF8? When it should be used over TProcess?
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

dsiders

  • Hero Member
  • *****
  • Posts: 1596
Re: Purpose of TProcessUTF8
« Reply #1 on: March 09, 2026, 05:03:22 pm »

LemonParty

  • Sr. Member
  • ****
  • Posts: 439
Re: Purpose of TProcessUTF8
« Reply #2 on: March 09, 2026, 05:07:36 pm »
Understood. Thank you.
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12786
  • FPC developer.
Re: Purpose of TProcessUTF8
« Reply #3 on: March 09, 2026, 05:19:18 pm »
It's mostly legacy.

Originally Lazarus assumed a string contained UTF8, and FPC not. So Lazarus built a wrapper around TProcess with that assumption, and extended it for years.

With 3.2.0 most of the unicode work done by Mattias was merged back into TProcess itself, with some additional work done in and after 3.2.2. So TProcessUTF8 is quite empty now, containing only a simple parameter splitter.

LemonParty

  • Sr. Member
  • ****
  • Posts: 439
Re: Purpose of TProcessUTF8
« Reply #4 on: March 09, 2026, 06:16:09 pm »
Is it mean that I can use TProcess?
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

Thaddy

  • Hero Member
  • *****
  • Posts: 18982
  • Glad to be alive.
Re: Purpose of TProcessUTF8
« Reply #5 on: March 09, 2026, 06:43:25 pm »
Yes.
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1225
Re: Purpose of TProcessUTF8
« Reply #6 on: March 09, 2026, 07:19:58 pm »
It's mostly legacy.

Originally Lazarus assumed a string contained UTF8, and FPC not. So Lazarus built a wrapper around TProcess with that assumption, and extended it for years.

With 3.2.0 most of the unicode work done by Mattias was merged back into TProcess itself, with some additional work done in and after 3.2.2. So TProcessUTF8 is quite empty now, containing only a simple parameter splitter.
Shouldn't it be deprecated?

Thaddy

  • Hero Member
  • *****
  • Posts: 18982
  • Glad to be alive.
Re: Purpose of TProcessUTF8
« Reply #7 on: March 09, 2026, 09:08:03 pm »
Not as far the design-time component is concerned. I don't think that is updated.
Anyway, simply use TProcess.
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

 

TinyPortal © 2005-2018