[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gh_repl

From: Mike Gran
Subject: Re: gh_repl
Date: Mon, 9 Jan 2012 13:42:23 -0800 (PST)

> From: Mark H Weaver <address@hidden>
>>     scm_from_locale_symbol ("scheme"));
> Note that it's good practice to always use `scm_from_utf8_symbol' or
> `scm_from_latin1_symbol' when the argument is a C string literal.
 [... ]

> More importantly, since many people tend to copy code snippets from what
> they see here and elsewhere, it's good to start spreading good i18n
> habits.  The key idea to spread is: it's wrong to use the user's locale
> to interpret a C string literal.
Good point.
Virtually all of my personal code is written in the subset of documented API
between 1.8 and 2.0 and is written in US-ASCII, but, you're right
about spreading good habits when discussing code in public.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]