1 /* Message translation utilities.
2 Copyright (C) 2001 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING. If not, write to the Free
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23 #include "coretypes.h"
29 /* Initialize the translation library for GCC. This performs the
30 appropriate sequence of calls - setlocale, bindtextdomain,
31 textdomain. LC_CTYPE determines the character set used by the
32 terminal, so it has be set to output messages correctly. */
37 #ifdef HAVE_LC_MESSAGES
38 setlocale (LC_CTYPE
, "");
39 setlocale (LC_MESSAGES
, "");
41 setlocale (LC_ALL
, "");
44 (void) bindtextdomain ("gcc", LOCALEDIR
);
45 (void) textdomain ("gcc");