float config issue, atoi is language dependent

Bug #524623 reported by Treeform
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
High
David Rose

Bug Description

see threads:
http://www.panda3d.org/phpbb2/viewtopic.php?t=8447
http://www.panda3d.org/phpbb2/viewtopic.php?t=8327

Blenderkid:
I had a problem with pstats on my linux notebook.
When I started pstats I got this warnings:
Code:
:prc(warning): Invalid floating-point value for ConfigVariable collect-tcp-interval: 0.2
:prc(warning): Invalid floating-point value for ConfigVariable max-poll-cycle: 0.2

and after I ran my application. I got two other warnings:
Code:
Got new connection from 127.0.0.1
:prc(warning): Invalid floating-point value for ConfigVariable simple-thread-yield-sleep: 0.001
:prc(warning): Invalid floating-point value for ConfigVariable simple-thread-epoch-timeslice: 0.05

Pstats did not show any graphs.

There was a problem with the dot and komma of the prc settings.
To solve this problem you need to set your environment language to english before starting pstats and your application, like this:
Code:
$ export LANG=en_US.UTF-8
$ export GDM_LANG=en_US.UTF-8
Then it should run without any warnings.
-blenderkid
-----------------------------------------------------------------------------------
David:
It doesn't have to be specifically english; it just needs to be the "C" language, e.g.:
Code:
export LC_ALL=C

This sort of thing is an occasional nuisance. Maybe we need to replace every use of atoi() in Panda with a hand-rolled function that doesn't suffer the same language dependency.
-David

rdb (rdb)
Changed in panda3d:
assignee: nobody → David Rose (droklaunchpad)
importance: Undecided → High
milestone: none → 1.7.1
status: New → Fix Committed
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.