Recent

Author Topic: MediaInfoLib wrapper for Lazarus on MacOS  (Read 4243 times)

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: MediaInfoLib wrapper for Lazarus on MacOS
« Reply #15 on: December 07, 2020, 03:40:36 pm »
hello,
thanks for all the answers trev    :)
I am near the end of my problem :
when i launch Lazarus from the shortcut on the desktop, and i launch my program, it doesn't work with media File with non ascii Filename.
when i launch Lazarus from a terminal where i am the user, and i launch my program, it  works with media File with non ascii Filename.
Environment problem ?
Friendly, J.P


Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: MediaInfoLib wrapper for Lazarus on MacOS
« Reply #16 on: December 07, 2020, 11:51:50 pm »
No worries.

Are you sure you're using the same version of Lazarus from the desktop shortcut and the terminal? Otherwise I cannot explain why launching from one rather than  the other has a different outcome.

What version of Lazarus + of FPC ? I'll see if I can replicate the issue if I know which versions to try.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
[SOLVED] MediaInfoLib wrapper for Lazarus on MacOS
« Reply #17 on: December 08, 2020, 01:45:18 am »
hello,
finally, I solve my problem, executing this at login :
Code: Pascal  [Select][+][-]
  1. launchctl setenv LANG fr_FR.UTF-8
Now my program works in Lazarus and when I launch the .app with double click from the file explorer.
Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: MediaInfoLib wrapper for Lazarus on MacOS
« Reply #18 on: December 08, 2020, 08:01:54 am »
It's a little odd that it wasn't already set - it usually sets the language during installation. Anyway, all's well that ends well :)

 

TinyPortal © 2005-2018