This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours

Bug 176468

Summary: sort -n broke
Product: [Fedora] Fedora Reporter: Dave Jones <davej>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.93-5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-12-23 06:58:17 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description Dave Jones 2005-12-23 01:22:09 EST
numeric sort looks really odd. Here's the output of readprofile | sort -n

   105 _spin_unlock_irq                          15.0000
   108 cache_alloc_debugcheck_after               0.3673
   108 schedule                                   0.0400
    10 avc_audit                                  0.0042
    10 copy_files                                 0.0159
    10 do_sync_read                               0.0426
    11 process_backlog                            0.0430
   125 kfree                                      1.0331
    12 dbg_redzone2                               0.2553
    12 generic_fillattr                           0.0800
    12 permission                                 0.0779
   135 *unknown*
    13 add_to_page_cache                          0.0872
    13 cond_compute_av                            0.1171
   140 find_get_page                              2.1875
   140 _raw_spin_lock                             1.4286
  1436 buffered_rmqueue                           3.1840
    14 avc_has_perm                               0.2029

etc..
Comment 1 Dave Jones 2005-12-23 01:23:16 EST
never mind, forgot to set my LANG=C on that testbox.
Comment 2 Dave Jones 2005-12-23 01:25:51 EST
actually. double checking.. it used to work with en_US.UTF-8 too.
Comment 3 Tim Waugh 2005-12-23 06:58:17 EST
Thanks for spotting it.  Fixed in 5.93-5.