We have detected that cookies are not enabled on your browser. Please enable cookies to ensure the proper experience.
Results 1 to 2 of 2
  1. #1

    integer format inconsistency?

    Hi,

    I'm having a quite fun issue with the data saved by TonicBars (may be the same for other plugins ).

    On my EU client/french locale/windows system, Integer values are saved like:
    Code:
    ["y"] = "INTEGER:973",
    On my EU client/US locale/linux system, Integer values are saved like:
    Code:
    ["y"] = 973,
    Note that it's not the classic "comma bug".

    Anyone have a clue why this difference?

    PS: somewhat solved with the little awk script following, but I'm most interested at the inconsistency reason
    Code:
    !/INTEGER/ { print $0 }
    
    /INTEGER/ {
            numbertmp=substr($0,index($0,"INTEGER:")+8)
            numbertmp=substr(numbertmp,1,index(numbertmp,"\"")-1)
            number=sprintf("%5f",numbertmp)
            gsub("\"INTEGER:[0-9.]*\"", number, $0)
            print $0
    }

  2. #2

    Re: integer format inconsistency?

    TonicBars checks the locale of the system, and changes the save format for french and german locales.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

This form's session has expired. You need to reload the page.

Reload