POV-Ray : Newsgroups : povray.general : qtpovray-3.80.1 for Linux : Re: qtpovray-3.80.1 for Linux Server Time
5 May 2024 11:48:12 EDT (-0400)
  Re: qtpovray-3.80.1 for Linux  
From: hugo giulietti
Date: 1 Aug 2018 16:22:48
Message: <20180801172247.61786f61d97daa5f4b503ed0@gmail.com>
My locale is set wide system to spanish. Just for confirm, i added this lines to
cornell.pov:

#version 3.7;
#debug concat("version in cornell.pov is ",str(version,0,2),"\n")
#declare Foo = 3.14;
#declare Bar = 314/100;
#debug concat("Foo is ", str(Foo,0,2), "\n")
#debug concat("Bar is ", str(Bar,0,2), "\n")


and the output result is:


  Render Stream to console........On 
  Statistics Stream to console....On 
  Warning Stream to console.......On 
version in cornell.pov is 3,00
Foo is 3,00
Bar is 3,14
Parse Warning: In POV-Ray v3.5 and later a radiosity{}-block will automatically turn
on radiosity if the output quality is set to 9 or higher. Read the documentation to
find out more about radiosity changes!

It's clear. My decimal separator is a spanish "," (comma) rather the english "."
(point)


On Wed, 1 Aug 2018 10:33:07 +0200
clipka <ano### [at] anonymousorg> wrote:

> Am 31.07.2018 um 23:49 schrieb hugo giulietti:
> > 
> > Confirmed using /usr/share/qtpovray-3.8/include/colors.inc
> > 
> > The message does appear and say :
> > 
> >   Statistics Stream to console....On 
> >   Warning Stream to console.......On 
> > version in colors.inc is 3,00
> 
> So you currently have
> 
>     #version 3.5;
>     #debug concat("version in colors.inc is ",str(version,0,2),"\n")
> 
> in that `colors.inc`, right?
> 
> Then that's certainly a bug. Somehow the `#version` statement fails to
> set the correct effective language version.
> 
> 
> I also notice that the debug message says `3,00`, rather than `3.00`. Is
> that a typo, or is that in the actual message?
> 
> In the latter case, that's another bug.
> 
> 
> Oh, can you please try the following in an empty .pov file:
> 
>     #declare Foo = 3.14;
>     #declare Bar = 314/100;
>     #debug concat("Foo is ", str(Foo,0,2), "\n")
>     #debug concat("Bar is ", str(Bar,0,2), "\n")
> 
> This /should/ output
> 
>     Foo is 3.14
>     Bar is 3.14
> 
> but I have a hunch that it might output
> 
>     Foo is 3,00
>     Bar is 3,14
> 
> in which case I guess I know what the problem may be.
> 
> 
> Say, your name sounds italian, and in Italy they normally use commas as
> decimal separators (just as they do here in Germany), right?
> 
> 
> @dick: Are you actively changing the C/C++ locale in qtpovray, or do you
> happen to know whether Qt does so by default? (buzzword `setlocale`)


-- 
hugo giulietti <hug### [at] gmailcom>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.