From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7218 Path: news.gmane.org!not-for-mail From: u-wsnj@aetey.se Newsgroups: gmane.linux.lib.musl.general Subject: Re: libintl: stubs or working functions? Date: Fri, 20 Mar 2015 10:20:52 +0100 Message-ID: <20150320092052.GQ23636@example.net> References: <20150316134156.GZ16260@port70.net> <20150317084004.5cbbd4ae@r2lynx> <20150317020119.GX23507@brightrain.aerifal.cx> <20150317135916.3af647ab@r2lynx> <20150317150234.GA16260@port70.net> <20150317153857.GZ23507@brightrain.aerifal.cx> <20150318141020.GH23636@example.net> <20150319124105.GJ23636@example.net> <20150319175443.GF23507@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1426843298 28431 80.91.229.3 (20 Mar 2015 09:21:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Mar 2015 09:21:38 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7231-gllmg-musl=m.gmane.org@lists.openwall.com Fri Mar 20 10:21:23 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YYt7K-0003s4-J1 for gllmg-musl@m.gmane.org; Fri, 20 Mar 2015 10:21:22 +0100 Original-Received: (qmail 23747 invoked by uid 550); 20 Mar 2015 09:21:19 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 23721 invoked from network); 20 Mar 2015 09:21:18 -0000 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received-SPF: none receiver=mailfe06.swip.net; client-ip=77.247.181.162; envelope-from=u-wsnj@aetey.se Content-Disposition: inline In-Reply-To: <20150319175443.GF23507@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:7218 Archived-At: On Thu, Mar 19, 2015 at 01:54:43PM -0400, Rich Felker wrote: > > What I am after is seeing "EXXXXX" as a part of the message with any LANG, > > including English: > > > > LANG=en: "No such file or directory (ENOENT)" > > LANG=xx: "&((/&=(/%&/(&%/(/)(/&/ ENOENT" > > ... > The issues I'm somewhat concerned with are: > > - Does this interfere with proper flow of RTL text? In absence of bidi > nesting chars, I would think the answer might be yes. Regrettably I think it would. Then, I'd be fine with TNEONE :) > - Does it result in ugly mix of unmatching fonts in UI, possibly even > alterring line spacing? Sometimes quite certainly, but I see this as an implementation issue of the rendering systems, the inability to mix strings of different "kinds of glyphs" is artificial. > Keep in mind that error messages are not necessarily bugs to be > reported upstream but may be informative to users directly. For > example a GUI app could be reporting to the user that they file they > tried to open is not accessible. I want this even as an application user, without any bug reports involved. When an error code passes several layers before being shown to the user it can "fall out of context" and become misleading. I encountered ENOENT in a file related operation which indicated that a different object than a "file or directory" was missing. It would take less time to realize what happened have I thought about "which errcode it was" as I finally did, not "why is the file missing". In other words, I object to the need to mentally "translate back" before trusting what the message literally says. In the same way as virtually no one uses "internationalized/localized" keywords in a programming language (certain spreadsheets come to my mind as a terrible example of the opposite :) I'd like short and universal identifiers for the errors, besides those messages oriented towards humans with unspecified technical proficiency. This would somewhat impact all users (one extra word per error message) but would improve the life of some of the users and of many developers. May be I wish too much :) Rune