X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmain.cc;h=93b784f0ffcc296015357e2101989b49c9fe63ee;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=18adbb2cb731ee16922ab0731aeae2282dd5a1b1;hpb=842044f5c5f5d4e2f1c778493018ee2b38b90819;p=lilypond.git diff --git a/lily/main.cc b/lily/main.cc index 18adbb2cb7..93b784f0ff 100644 --- a/lily/main.cc +++ b/lily/main.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2012 Han-Wen Nienhuys + Copyright (C) 1997--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,6 +18,7 @@ */ #include "main.hh" +#include "lily-guile.hh" #include #include @@ -258,7 +259,7 @@ copyright () */ { /* Do not update the copyright years here, run `make grand-replace' */ - printf ("%s", (_f ("Copyright (c) %s by\n%s and others.", "1996--2012", + printf ("%s", (_f ("Copyright (c) %s by\n%s and others.", "1996--2015", AUTHORS).c_str ())); printf ("\n"); } @@ -334,7 +335,7 @@ warranty () } static void -prepend_scheme_list (string dir, string scmlist) +prepend_scheme_list (const string &dir, const string &scmlist) /* * Inserts an item at the front of a Scheme list, e.g. %load-path * Parameters: @@ -553,6 +554,20 @@ setup_localisation () Disable localisation of float values. */ setlocale (LC_NUMERIC, "C"); +#if GUILEV2 + // In order not to have this porting aid backfire to GUILE1 usage, + // this is only compiled in the GUILEV2 version. It should + // eventually be replaced with proper multibyte communication with + // GUILE2, but in the mean time it seems that this is the least + // invasive path to get comparable results between the + // not-really-multibyte-supporting GUILE1 and GUILE2 + + /* Disable character sets */ + setlocale (LC_CTYPE, "C"); + /* But our text domain is in UTF-8 */ + bind_textdomain_codeset ("lilypond", "UTF-8"); +#endif + string localedir = LOCALEDIR; if (char const *env = getenv ("LILYPOND_LOCALEDIR")) localedir = env; @@ -563,7 +578,7 @@ setup_localisation () } static void -add_output_format (string format) +add_output_format (const string &format) /* * Capture information internally from command-line options * re output format.