Recent

Author Topic: Windows users, please test.  (Read 3920 times)

dbannon

  • Hero Member
  • *****
  • Posts: 2802
    • tomboy-ng, a rewrite of the classic Tomboy
Windows users, please test.
« on: October 31, 2021, 11:57:05 am »
Hi Windows users, I would be very grateful if you could please test the attached project, all it does is draw a few extended characters in a TMemo.  The story is I want to use these characters as bullet points but someone as discovered that some systems, perhaps locale dependent, cannot display them.

You should see the image below, in particular the bullets (or symbols) down the left. Nothing fancy needed, should compile and run in just about any Lazarus install.

Thanks in advance !

EDIT : Sorry, I have reattached the project, this time with one I have tested will open with, eg Laz 2.0.10.

Davo
« Last Edit: November 02, 2021, 12:08:31 am by dbannon »
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11455
  • FPC developer.
Re: Windows uses, please test.
« Reply #1 on: October 31, 2021, 12:01:40 pm »
Seems ok.

I also tried in native windows mode without utf-8 emulation ( -dDisableUTF8RTL in options and overrides) and then everything is a question mark
« Last Edit: November 01, 2021, 12:59:04 pm by marcov »

dseligo

  • Hero Member
  • *****
  • Posts: 1222
Re: Windows uses, please test.
« Reply #2 on: October 31, 2021, 12:31:14 pm »
Something is wrong with attached project:
Code: Text  [Select][+][-]
  1. [Window Title]
  2. Cannot compile project
  3.  
  4. [Content]
  5. The project has no main source file.
  6.  
  7. [Cancel]

Maybe you have newer Lazarus version, I'm on 2.0.10.

dseligo

  • Hero Member
  • *****
  • Posts: 1222
Re: Windows uses, please test.
« Reply #3 on: October 31, 2021, 12:39:52 pm »
I created new project and added your unit and form and it shows same as marcov screenshot.

I'm on Windows 10,

My locale (result of this powershell command:
Code: Text  [Select][+][-]
  1. Get-WinSystemLocale | Select-Object Name, DisplayName,
  2.                         @{ n='OEMCP'; e={ $_.TextInfo.OemCodePage } },
  3.                         @{ n='ACP';   e={ $_.TextInfo.AnsiCodePage } }

) is

Code: Text  [Select][+][-]
  1. Name  DisplayName        OEMCP  ACP
  2. ----  -----------        -----  ---
  3. hr-HR Croatian (Croatia)   852 1250

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Windows uses, please test.
« Reply #4 on: October 31, 2021, 12:42:38 pm »
The project seems to be created by Laz/main or Laz 2.2RC1 which use a new structure of the xml files. Either you, desligo, load it into one of these versions or convert it with the fixlp utility (https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/applications/fixlp/) back to the old format, or you, dbannon, load the project back into Laz/main or 2.2RC1, check "Maximize compatibility of project files" in the project options > Miscellaneous and re-save.

loaded

  • Hero Member
  • *****
  • Posts: 825
Re: Windows uses, please test.
« Reply #5 on: October 31, 2021, 12:50:33 pm »
Hi All,
Your project doesn't compile in the lazarus version I'm using.
But if I create a new project and add the forms manually.
It works flawlessly.
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

dbannon

  • Hero Member
  • *****
  • Posts: 2802
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Windows uses, please test.
« Reply #6 on: October 31, 2021, 01:10:28 pm »
Thanks Marcov, dseligo, wp, loaded and sorry for uploading a trunk only project. Gee you make mistakes when you rusk, don't you ?

I have uploaded a new one in the head post and have tested it with 2.0.10, set that max compatibility option too !

Interesting, does seem to work in 'several' places so far.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Windows uses, please test.
« Reply #7 on: November 01, 2021, 10:11:33 am »
Since not all fonts contain a full utf8 "character set" I took the freedom to extend your demo by a combobox with all fonts available on the current system. Now you can simply navigate through all fonts by pressing the UP/DOWN keys and the memo will be redrawn with the selected font.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11455
  • FPC developer.
Re: Windows uses, please test.
« Reply #8 on: November 01, 2021, 01:01:34 pm »
After I posted, I also enabled the "utf-8" option in the Windows resource tab of the project, and that worked fine too (even with -ddisableutf8rtl)

So I had all question marks after adding -ddisableutf8rtl, and then it was good again after enabling the resource option

dbannon

  • Hero Member
  • *****
  • Posts: 2802
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Windows uses, please test.
« Reply #9 on: November 02, 2021, 12:08:04 am »
Ah, thanks WP.  I guess I am mostly interested in results using the default font. I sort of assume (maybe incorrectly) that everyone should be able to make it work by selecting a different font.

But no one else here is seeing the problem anyway. I am surprised that the one person who has a problem displaying those char, in the Czech locale, is using the same default font but getting a different result.

And thanks Marcov, I did not know about either of those settings, trouble is I do all my dev work in Linux and only spot tests in Windows/MacOS. I must investigate ...

I would really like to see a few more test results, especially from people in the Non English speaking world.

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018