vcs

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category General
  • Assigned To
    outlyer
  • Operating System
  • Severity Critical
  • Priority Medium
  • Reported Version 1.12
  • Due in Version 1.12.1
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: vcs
Opened by outlyer - 11.04.2010
Last edited by outlyer - 23.04.2010

FS#160 - AWK getting comma-separated decimals

Original report by ya at:

Video Contact Sheet *NIX v1.12, (c) 2007-2010 Toni Corvera
Processing <FILE>...
awk: BEGIN { if (4993,00000000000000000000 == 0) exit 0 ; else exit 1 }
awk:                 ^ syntax error
awk: BEGIN { if (4993,00000000000000000000 == 0) exit 0 ; else exit 1 }
awk:                                           ^ syntax error
awk: BEGIN { if (4993,00000000000000000000 == 0) exit 0 ; else exit 1 }
awk:                                                      ^ syntax error
awk: BEGIN { printf "%.20f", ((4993,00000000000000000000 - 4993.92))+0 }
awk:                                                               ^ syntax error
awk: BEGIN { printf "%.20f", ((4993,00000000000000000000 - 4993.92))+0 }
awk:                                                                ^ syntax error
awk: BEGIN { if (() < (0)) print (() * -1) ; else print () }
awk:              ^ syntax error
awk: BEGIN { if (() < (0)) print (() * -1) ; else print () }
awk:                ^ syntax error
awk: BEGIN { if (() < (0)) print (() * -1) ; else print () }
awk:                       ^ syntax error
awk: BEGIN { if (() < (0)) print (() * -1) ; else print () }
awk:                                 ^ syntax error
awk: BEGIN { if (() < (0)) print (() * -1) ; else print () }
awk:                                       ^ syntax error
awk: BEGIN { if (() < (0)) print (() * -1) ; else print () }
awk:                                                       ^ syntax error
...
The task blocks this from closing
ID Project Summary Priority Severity Assigned To Progress
161 vcs  FS#161 - Release 1.12.1  Very Low Low outlyer
100%
Closed by  outlyer
23.04.2010 12:20
Reason for closing:  Fixed
Additional comments about closing:  

Fixed in 1.12.1

Project Manager

GAWK 3.1.3 to 3.1.5 honoured LC_NUMERIC while newer versions do not (http://www.gnu.org/manual/gawk/html_node/Conversion.html).

This is the POSIX correct behaviour so it might hit other awks.

Exporting LC_NUMERIC=C inside the script should fix the problem.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing