Recent

Author Topic: Add code for LConvEncoding.pas  (Read 5016 times)

voronoy

  • Newbie
  • Posts: 3
Add code for LConvEncoding.pas
« on: November 17, 2013, 03:38:01 pm »
I have code for support KOI8U in LConvEncoding.
Code: [Select]
function UnicodeToKOI8U(Unicode: cardinal): integer;
begin
  case Unicode of
  1025: Result:=179;
  1028: Result:=180;
  1030..1031: Result:=Unicode-848;
  1105: Result:=163;
  1108: Result:=164;
  1110..1111: Result:=Unicode-944;
  1168: Result:=189;
  1169: Result:=173;
  else
    Result:=UnicodeToKOI8(Unicode);
  end;
end;
Coul you add this code in source?

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
« Last Edit: November 17, 2013, 05:52:48 pm by theo »

voronoy

  • Newbie
  • Posts: 3
Re: Add code for LConvEncoding.pas
« Reply #2 on: November 17, 2013, 06:59:17 pm »
I can't login in bugtracker.
But I made diff-file (see it in attachment).

voronoy

  • Newbie
  • Posts: 3
Re: Add code for LConvEncoding.pas
« Reply #3 on: November 17, 2013, 09:34:38 pm »
Thanks. I am reporting on bugtracker this patch: http://bugs.freepascal.org/view.php?id=25324

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927

 

TinyPortal © 2005-2018