Recent

Author Topic: [SOLVED] JVCLlaz, jvdblookup not search national characters.  (Read 541 times)

mmelwin

  • New Member
  • *
  • Posts: 13
[SOLVED] JVCLlaz, jvdblookup not search national characters.
« on: February 15, 2021, 11:44:37 am »
Polish national characters like "ł" not working in JvDBLookupComboBox.
« Last Edit: February 15, 2021, 09:47:47 pm by mmelwin »

korba812

  • Full Member
  • ***
  • Posts: 166
Re: JVCLlaz, jvdblookup not search national characters.
« Reply #1 on: February 15, 2021, 02:12:41 pm »
I'm sending the patch. Could you please check and confirm it works?

mmelwin

  • New Member
  • *
  • Posts: 13
Re: JVCLlaz, jvdblookup not search national characters.
« Reply #2 on: February 15, 2021, 09:46:50 pm »
Thank you very much. Now it works great.

wp

  • Hero Member
  • *****
  • Posts: 8388
Re: [SOLVED] JVCLlaz, jvdblookup not search national characters.
« Reply #3 on: February 15, 2021, 10:40:34 pm »
I applied the patch to jvcl trunk on ccr, thank you. The procedure ProcessSearchKey, however, required some re-work in its application to UTF8Char:
  • The upper limit of the checks in the case instruction was High(Char) which is not correct for UTF8 - I put this part into the else branch of the comparisons
  • The backspace key must delete the last UTF8 codepoint, rather than the last 1-byte character.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

korba812

  • Full Member
  • ***
  • Posts: 166
Re: [SOLVED] JVCLlaz, jvdblookup not search national characters.
« Reply #4 on: February 15, 2021, 11:11:39 pm »
Thanks for the quick response. In the meantime, I posted a new bug tracker issue (0038494).

wp

  • Hero Member
  • *****
  • Posts: 8388
Re: [SOLVED] JVCLlaz, jvdblookup not search national characters.
« Reply #5 on: February 16, 2021, 12:26:10 am »
Resolved.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018