https://github.com/JuliaLang/julia
Raw File
Tip revision: bd976124d02c53b69068ab13db44c18baf092b16 authored by Oscar Blumberg on 03 October 2015, 16:09:10 UTC
Liveness computation
Tip revision: bd97612
libsupportinit.c
// This file is a part of Julia. License is MIT: http://julialang.org/license

#include <locale.h>
#include "libsupport.h"

#ifdef __cplusplus
extern "C" {
#endif

static int isInitialized = 0;

void libsupport_init(void)
{
    if (!isInitialized) {
#ifdef _OS_WINDOWS_
        SetConsoleCP(1252); // ANSI Latin1; Western European (Windows)
#endif
        setlocale(LC_ALL, ""); // set to user locale
        setlocale(LC_NUMERIC, "C"); // use locale-independent numeric formats

        ios_init_stdstreams();

        isInitialized=1;
    }
}

#ifdef __cplusplus
}
#endif
back to top