* * *

Author Topic: OpenBSD error: Illegal character in format string.  (Read 5245 times)

Bart

  • Hero Member
  • *****
  • Posts: 2703
    • Bart en Mariska's Webstek
Re: OpenBSD error: Illegal character in format string.
« Reply #15 on: January 03, 2016, 04:35:07 pm »
Rather odd. Having no thousandseparator, OK, but having no DecimalSeparator?
(Pascal does not mind having a #0 in a string, no WS is going to display it).

Out of curiousity, what is the output of FloatToStr(1.23) (using sysutils+clocale unit)?

Bart

crsc

  • New member
  • *
  • Posts: 14
Re: OpenBSD error: Illegal character in format string.
« Reply #16 on: January 03, 2016, 04:41:45 pm »
Bart, you found the next bug in clocale. Very strange.

The output is:

FloatToStr(1.23) = "123"

Bart

  • Hero Member
  • *****
  • Posts: 2703
    • Bart en Mariska's Webstek
Re: OpenBSD error: Illegal character in format string.
« Reply #17 on: January 03, 2016, 04:46:32 pm »
I added a note in the bugtracker.

Bart

crsc

  • New member
  • *
  • Posts: 14
Re: OpenBSD error: Illegal character in format string.
« Reply #18 on: January 20, 2016, 11:20:04 am »
I was busy for a while but today I tried to fix some things. It's impossible to build fpc on OpenBSD. How are the OpenBSD-packages build? Via cross compiling? In the attached file you will find the build error, if you are interested. Any idea, what the problem can be?

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5568
Re: OpenBSD error: Illegal character in format string.
« Reply #19 on: January 20, 2016, 12:18:21 pm »
Quote
Error: Path "./" does not exist

Sounds like something goes wrong with expanding paths. (expandfilename/fexpand and everything it depends on (readdir*) and one very special routine).

To avoid shell problems, use bash as shell.

The release has the following warning in the readme:

Quote
The release has been generated on a virtual machine running OpenBSD release 4
  It may not work on more recent OpenBSD releases.

  WARNING: on a 5.4 vmware virtual machine, installation produces a kernel erro
  Due to changes in system structure layouts like dirent and stat structures
this release is not working on any system post-5.4 either.

  Any help in maintaining OpenBSD target for Free Pascal would be most welcome!
See Free Pascal website:
http://www.freepascal.org

Pierre Muller

In short, it is for openBSD 4, and not 5, and that could explain the locale issues too, as well as the expandfile problems (which are dirent dependent)

crsc

  • New member
  • *
  • Posts: 14
Re: OpenBSD error: Illegal character in format string.
« Reply #20 on: January 20, 2016, 02:03:43 pm »
Thank you for your answer. I'll do some test builds with an old version of OpenBSD and do tests with the clocale / formatsettings functions.

ab1jx

  • New member
  • *
  • Posts: 23
    • Just some photos on Nikonians
Re: OpenBSD error: Illegal character in format string.
« Reply #21 on: February 04, 2016, 06:20:14 am »
I just wanted to say that OpenBSD does NOT have a working locale, the problem crops up with other things too.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus