[LU-349] port bug21847 to master (obdfilter-survey: Syntax error in some locales) Created: 20/May/11  Updated: 07/Jun/11  Resolved: 07/Jun/11

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.1.0
Fix Version/s: Lustre 2.1.0

Type: Bug Priority: Minor
Reporter: Hongchao Zhang Assignee: Hongchao Zhang
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Bugzilla ID: 21,847
Rank (Obsolete): 5014

 Description   

the awk in obdfilter_survey will encounter some problems in some locals,
e.g. with LC_NUMERIC="de_DE" which uses a comma as the decimal separator, awk output will have the localized format,
input can be parsed in this and the standard C locale, but arithmetic operations only grok numbers in C locale.

  1. locale | grep LC_NUMERIC
    LC_NUMERIC="de_DE@euro"
  2. awk 'BEGIN {printf "%.1f\n", 1.0}

    '
    1,0

  3. awk 'BEGIN {printf "%.1f\n", 1,0}

    '
    1,0

  4. awk 'BEGIN {printf "%.1f\n", (1,0/1)}'
    awk: BEGIN {printf "%.1fn", (1,0/1)}

    awk: ^ syntax error



 Comments   
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » x86_64,client,sles11,inkernel #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » i686,client,el5,inkernel #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » i686,client,el5,ofa #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » i686,client,el6,inkernel #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,ofa #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » i686,server,el5,inkernel #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » i686,server,el5,ofa #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » i686,server,el6,inkernel #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » x86_64,client,el5,ofa #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Build Master (Inactive) [ 31/May/11 ]

Integrated in lustre-master » x86_64,server,el5,ofa #143
LU-349 set LC_ALL explicitly in obdfilter-survey

Oleg Drokin : 347c3a363efd7cfc7c34bc59c813ca6421f67f64
Files :

  • lustre-iokit/obdfilter-survey/obdfilter-survey
Comment by Hongchao Zhang [ 07/Jun/11 ]

the patch has been landed on master, close the bug.

Generated at Sat Feb 10 01:06:08 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.