[Nut-upsdev] Character-encoding in code and docs

Charles Lepple clepple at gmail.com
Fri Feb 10 12:37:35 UTC 2006


On 2/10/06, Arjen de Korte <nut+devel at de-korte.org> wrote:
>
> > Hi fellows,
> >
> > are there any policy on character-encoding in this project?
> > The upscode2 driver did originally contain some nordic letters encoded in
> > latin-1 (å, ö), but these have now transformed into garbage.
> >
> > I would like to restore these, but in what encoding? UTF-8?
>
> Refrain from using those. Drivers usually require very little (if any)
> user interaction, so any effort to making this portable (you'll need to
> look at the local environment to determine if and how you can display
> these character) is largely wasted. Where localization is needed, is in
> the clients (for instance, KNutClient).

I think I have seen a few files with latin-1 characters in the
comments (changelog as well), and that's probably what Niels is
referring to.

Is there a de-facto standard for using the Unicode BOM in C? Or will
older compilers choke?)

--
- Charles Lepple



More information about the Nut-upsdev mailing list