Next Previous Up Top Contents Index

5 Function and Macro Reference

set-locale

Function

Summary

Sets the C locale.
Package

fli

Signature

set-locale &optional locale => c-locale

Arguments

locale

A locale name.

Values

c-locale

the C locale.

Description

This function can be called to set the C locale; if you set the locale in any other way, then Lisp might not do the right thing when passing strings and characters to C. It callssetlocale to tell the C library to switch and then tells the FLI what conversions to do when passing strings and characters to C. The locale argument should be a locale name; if not passed, it defaults according to the OS conventions.
See Also

convert-from-foreign-string
convert-to-dynamic-foreign-string
with-foreign-string

LispWorks Foreign Language Interface - 12 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker