Bug 211910 - bin/hostname - call setlocale so tool adheres to support localisation
Summary: bin/hostname - call setlocale so tool adheres to support localisation
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Sevan Janiyan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-16 16:37 UTC by Sevan Janiyan
Modified: 2016-09-29 01:37 UTC (History)
1 user (show)

See Also:


Attachments
call setlocale() (512 bytes, patch)
2016-08-16 16:37 UTC, Sevan Janiyan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sevan Janiyan 2016-08-16 16:37:34 UTC
Created attachment 173745 [details]
call setlocale()

setenv LC_ALL de_DE.ISO8859-1

without patch
% hostname foo
hostname: sethostname: Operation not permitted

with patch
% /usr/obj/usr/src/bin/hostname/hostname foo
hostname: sethostname: Operation nicht erlaubt