Recent

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

MISV

  • Hero Member
  • *****
  • Posts: 701
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

  • Full Member
  • ***
  • Posts: 171
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 »
Windows 10 (64 bit)
Lazarus: 2.0.10 / Trunk x32

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3862
  • 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.

 

TinyPortal © 2005-2018