Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144407 - sys-apps/hdparm - init-script should use LC_ALL=C itself
Summary: sys-apps/hdparm - init-script should use LC_ALL=C itself
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://sourceforge.net/projects/hdparm/
Whiteboard:
Keywords:
: 156937 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-19 05:21 UTC by Daniel Pielmeier
Modified: 2006-12-02 12:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Pielmeier gentoo-dev 2006-08-19 05:21:37 UTC
The hdparm init-script checks for the "No medium found" message.
When the user has a differnet locale (in my case german) the init-script fails because the message "Kein Medium gefunden" is in german.

+ [[ /etc/init.d/hdparm: line 122: /dev/hdc: Kein Medium gefunden
> == *\:\ \N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]
> [...]
> + [[ /etc/init.d/hdparm: line 122: /dev/hdd: Kein Medium gefunden
> == *\:\ \N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]

$ LC_ALL=de_DE.utf8
$ sudo /etc/init.d/hdparm stop
$ sudo /etc/init.d/hdparm start
* Running hdparm on /dev/hda ... [ ok ]
* Running hdparm on /dev/hdb ... [ ok ]

$ LC_ALL=en_US
$ sudo /etc/init.d/hdparm stop
$ sudo /etc/init.d/hdparm start
* Running hdparm on /dev/hda ... [ ok ]
* Running hdparm on /dev/hdb ... [ ok ]
* Running hdparm on /dev/hdc ... [ ok ]
* Running hdparm on /dev/hdd ... [ ok ]
Comment 1 SpanKY gentoo-dev 2006-08-20 00:00:28 UTC
fixed in cvs
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-02 12:17:37 UTC
*** Bug 156937 has been marked as a duplicate of this bug. ***