cale switch (Perl and Python both
manage without quite comfortably). How is:
guile --locale="foobar"
Better than:
LANG="foobar" guile ?
Peter
--
Peter Brett
Remote Sensing Research Group
Surrey Space Centre
oking at "safe" encodings for filenames. I wonder if that's relevant
to command-line argument processing?
Peter
--
Peter Brett
Remote Sensing Research Group
Surrey Space Centre
oblem is that Guile calls scm_set_program_arguments() [feature.c:72]
early in initialisation, and this can fail messily.
I still think your proposed "solution" causes WAY more problems than it
claims to solve, though. What do Andy & Ludovic think?
Peter
--
Peter Brett
Remote Sensing Research Group
Surrey Space Centre
ocale_stringn" returning a bytevector;
No, you can't do that, because scm_*_locale_string is supposed to either
return a string or raise "decoding-error".
> 2. Why not let "scm_from_locale_stringn" return string according to
> the locale from current environment a
es that they use "the current locale", not "the locale
specified by the environment variables". Not to mention the fact that
they change the current locale without restoring it afterwards.
So no, please don't do this. It's obviously the Wrong Thing.
Peter
--
Peter Brett
Remote Sensing Research Group
Surrey Space Centre
Peter
--
Peter Brett
Remote Sensing Research Group
Surrey Space Centre
BT Templeton writes:
> Are the scm_remember_upto_here_* functions useful now that Guile uses
> BDW-GC?
They're still useful if you want your code to work with both 1.8.x and
2.x.
Peter ;-)
--
Peter Brett
Remote Sensing Research Group
Surrey Space Centre
rpreter
users being increasingly treated as second class citizens.
Peter
--
Peter Brett
Remote Sensing Research Group
Surrey Space Centre
l...@gnu.org (Ludovic Courtès) writes:
> Hi Peter,
>
> Peter Brett writes:
>
>> It would certainly make my life as a downstream application maintainer
>> much, much easier if all Guile API functions that accept a C string
>> argument expected UTF-8.
>
> Out of
ed
criticism of other aspects of Ruby development).
http://lwn.net/Articles/423732/
Regards,
Peter
--
Peter Brett
Remote Sensing Research Group
Surrey Space Centre
o
Guile that the locale is set up correctly is a pain.
Peter
--
Peter Brett
Remote Sensing Research Group
Surrey Space Centre
at link libguile would provide
similar feedback.
Regards,
Peter
--
Peter Brett
Remote Sensing Research Group
Surrey Space Centre
ch of API that's
deprecated in 1.8.x.
OTOH if there are major changes in the C API in 2.x (particularly the
mechanisms for converting strings and numbers to/from SCM
representation) I will likely go postal.
Peter
--
Peter Brett
Remote Sensing Resear
13 matches
Mail list logo