[m-users.] How to set the locale?

Volker Wysk post at volker-wysk.de
Sun Oct 10 05:41:22 AEDT 2021


Hi!

Mercury programs appear not to set the locale at startup, using 

   setlocale(LC_ALL, "");

How should the locale be set in Mercury? Is it necessary to use the foreign
language interface?

This leads to my second question: How to quote quotation marks inside the
body of a foreign predicate, which consists of C code?

Bye,
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20211009/4bc25dfe/attachment.sig>


More information about the users mailing list