Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2014 22:54:30 -0700
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        Garance A Drosehn <drosih@rpi.edu>
Cc:        phil@juniper.net, freebsd-arch@freebsd.org
Subject:   Re: XML Output: libxo - provide single API to output TXT, XML, JSON and HTML
Message-ID:  <20140730055430.A78B1580A2@chaos.jnpr.net>
In-Reply-To: <1092D020-F782-4587-A199-C7313BC2CD20@rpi.edu>
References:  <20140725044921.9F0D3580A2@chaos.jnpr.net> <CAETOPp13H7kyLy-1VJRDOsDbOh8A1MWZDxw1xHUBsxTRtMfc7g@mail.gmail.com> <20140728054217.AC1A0580A2@chaos.jnpr.net> <20140728055336.GJ50802@ivaldir.etoilebsd.net> <CAETOPp3hJB8Gj%2BPMj3N951krnNqCYiAOY-cPHxMCBy1CQXWJaQ@mail.gmail.com> <A1E63A7A-BB38-4CC3-B5EC-B251BE990572@mail.turbofuzz.com> <20140729230345.31E9B580A2@chaos.jnpr.net> <53D85495.4050408@mu.org> <448BB170-6DDC-442B-A5C5-973EC35FF7B9@rpi.edu> <1092D020-F782-4587-A199-C7313BC2CD20@rpi.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
[+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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140730055430.A78B1580A2>