Re: String formatting with APR_INT64_T etc. & gettext localization
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Sat, 26 Apr 2014 14:17:08 +0100 (BST)
Mattias Engdegård wrote:
No problem with a bit of configury magic. See for example <http://code.google.com/p/msinttypes/>.
>> 2. Use a helper function to format an integer as a string; insert the
It certainly gives the desired result for the least work in the short term. I'm trying to think a bit longer term.
>> 3. Double-formatting, using "...%%%s..." to insert the correct
>> 4. Modify 'gettext' to expand or recognize these macros.
The patch is a proof of concept, not a final delivery. Sorry, I should have said that.
It needs to use the correct replacement strings, of course, depending on the build platform. This can be done by configury magic. I haven't implemented that yet. And it should put the correct paths to the source file names, as you say.
At this stage, the question is whether this looks feasible and useful, or if any of these issues are insurmountable or undesirable.
This is an archived mail posted to the Subversion Dev mailing list.