+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member Online status: blosco is offline Reputation: blosco the Neutral
    Join Date
    Jun 2011
    Posts
    55

    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
    Poster of Note Online status: moebius92 is offline Reputation: moebius92 the Neophyte moebius92 the Neophyte moebius92 the Neophyte moebius92 the Neophyte moebius92 the Neophyte moebius92 the Neophyte moebius92 the Neophyte moebius92 the Neophyte
    Join Date
    Jan 2008
    Posts
    842

    Re: integer format inconsistency?

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

+ Reply to Thread

Posting Permissions

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