Bug 211909 - bin/getfacl - call setlocale so tool adheres to support localisation
Summary: bin/getfacl - 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: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-16 15:59 UTC by Sevan Janiyan
Modified: 2024-01-05 03:54 UTC (History)
2 users (show)

See Also:


Attachments
call setlocale() (508 bytes, patch)
2016-08-16 15:59 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 15:59:20 UTC
Created attachment 173744 [details]
call setlocale()

setenv LC_ALL de_DE.ISO8859-1

with patch
% /usr/obj/usr/src/bin/getfacl/getfacl /etc/motd-
getfacl: /etc/motd-: stat() failed: Datei oder Verzeichnis nicht gefunden

without patch
% getfacl /etc/motd-
getfacl: /etc/motd-: stat() failed: No such file or directory
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2016-09-29 17:32:37 UTC
This is great, but I would prefer it with an error code, so that when users report an error, we can help them without understanding their language.

E.g. something like:

getfacl: /etc/motd-: stat() failed: FIL017 No such file or directory

and 
getfacl: /etc/motd-: stat() failed: FIL017 Datei oder Verzeichnis nicht gefunden

(same for the other setlocale PRs)
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2024-01-05 03:54:26 UTC
^Triage: commit bit was taken in for safekeeping.