Recent

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

dbannon

  • Hero Member
  • *****
  • Posts: 1805
    • 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 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

marcov

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

  • Sr. Member
  • ****
  • Posts: 446
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

  • Sr. Member
  • ****
  • Posts: 446
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: 9170
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.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

loaded

  • Sr. Member
  • ****
  • Posts: 441
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.
If Ide=Lazarus 2.0.10 32 Bit and Os=Win 10 Home 64 Bit then Get up and do something useful! Because God is the helper of those who start again;

dbannon

  • Hero Member
  • *****
  • Posts: 1805
    • 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 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

wp

  • Hero Member
  • *****
  • Posts: 9170
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.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 9778
  • 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: 1805
    • 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 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

 

TinyPortal © 2005-2018