Recent

Author Topic: UTF8toKOI8 and KOI8toUTF8 not found in OEncoding  (Read 950 times)

MISV

  • Hero Member
  • *****
  • Posts: 792
UTF8toKOI8 and KOI8toUTF8 not found in OEncoding
« on: September 15, 2020, 07:18:03 pm »
I just updated Lazarus. I now get the error that

UTF8toKOI8 and KOI8toUTF8 are missing

(I get the error in OEncoding unit in routine UTF8ToCodePage and CoePageToUTF8)

What have they been replaced by? :)

sstvmaster

  • Sr. Member
  • ****
  • Posts: 299
Re: UTF8toKOI8 and KOI8toUTF8 not found in OEncoding
« Reply #1 on: September 16, 2020, 06:48:16 pm »
You must use unit LazUtils (LConvEncoding), here you can see all identifiers:

https://lazarus-ccr.sourceforge.io/docs/lazutils/lconvencoding/index-8.html
« Last Edit: September 16, 2020, 06:51:23 pm by sstvmaster »
greetings Maik

Windows 10,
- Lazarus 2.2.6 (stable) + fpc 3.2.2 (stable)
- Lazarus 2.2.7 (fixes) + fpc 3.3.1 (main/trunk)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4474
  • I like bugs.
Re: UTF8toKOI8 and KOI8toUTF8 not found in OEncoding
« Reply #2 on: September 16, 2020, 09:05:19 pm »
UTF8toKOI8 and KOI8toUTF8 are missing
(I get the error in OEncoding unit in routine UTF8ToCodePage and CoePageToUTF8)
What have they been replaced by? :)
Where is unit OEncoding?

Please see r63354,
 "LazUtils: Support KOI8-R, KOI8-U and KOI8-RU codepages in LConvEncoding. Issue #37155, patch from eastorwest."
Issue #37155: https://bugs.freepascal.org/view.php?id=37155

The encoding table KOI8 and functions were not only replaced but also fixed and improved as indicated in the bug report.
We can add deprecated functions with the old names if need be. Is it needed? Should they refer to the respective KOI8-R functions?
« Last Edit: September 16, 2020, 09:08:26 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018