Bug 211910

Summary: bin/hostname - call setlocale so tool adheres to support localisation
Product: Base System Reporter: Sevan Janiyan <venture37>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: bdrewery
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
call setlocale() none

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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2024-01-05 03:54:08 UTC
^Triage: commit bit was taken in for safekeeping.