XML Output: libxo - provide single API to output TXT, XML, JSON and HTML

Simon J. Gerraty sjg at juniper.net
Wed Jul 30 05:54:46 UTC 2014


[+phil who somehow got dropped]

On Tue, 29 Jul 2014 23:40:14 -0400, Garance A Drosehn writes:
>I also wanted to highlight an issue that Simon brought up in the initial
>message for this thread:
>
>   "The main open issue (assuming this functionality is still desired)
>    is support of wide characters.
>
>    We figure the worst case solution is a sed(1) script to generate
>    the wide version of the API from the normal one, but perhaps simply
>    always using UTF8 would be a better solution?"

Thanks, good not to lose sight of that in all the color discussions ;-)

>In my own experiments I've pretended that all the output 'lpq' generates
>is simple ascii, although that's not necessarily true.  The filename
>field is set by whatever generated the output, which might be a PC or Mac
>which may or may not be unicode-aware.  The field might be gibberish (aka
>"invalid unicode").  Obviously "pretending" is the wrong way to handle
>this issue.

Indeed. UTF-8 has its attractions since i18n cannot simply be ignored in
this case.



More information about the freebsd-arch mailing list