Date: Sat, 23 Jan 2010 20:43:24 +0100 From: Gabor Kovesdan <gabor@FreeBSD.org> To: Kostik Belousov <kostikbel@gmail.com> Cc: attilio@freebsd.org, Hajimu UMEMOTO <ume@freebsd.org>, current@freebsd.org Subject: Re: NLS/strerror efficiency Message-ID: <4B5B515C.9000109@FreeBSD.org> In-Reply-To: <20100123193834.GM59590@deviant.kiev.zoral.com.ua> References: <20100119212019.GL59590@deviant.kiev.zoral.com.ua> <4B56CACF.50508@FreeBSD.org> <yge1vhgvdd3.wl%ume@mahoroba.org> <20100123193834.GM59590@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
El 2010. 01. 23. 20:38, Kostik Belousov escribió: > Wouldn't this cause the locale for error strings to be fixated at the > time of the first strerror/gai_strerror call ? > > Current code, despite it inefficiency, allow dynamic change of locale > that is reflected in strerror() output, I believe. > That's a good point. Imho, it should be cached in another static variable just like in my patch, where I should store it in another member of the struct. -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B5B515C.9000109>