X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mbyte.c;h=1ff911cc22845f79dd64ccce2dea3cb9c5bdfd32;hp=47505814843a9db585c4fe5a99f169fda2760340;hb=182468398773e3de240bf548e62a015c58583dd7;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281 diff --git a/mbyte.c b/mbyte.c index 4750581..1ff911c 100644 --- a/mbyte.c +++ b/mbyte.c @@ -1,19 +1,10 @@ /* + * Copyright notice from original mutt: * Copyright (C) 2000 Edmund Grimley Evans * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. */ /* @@ -28,6 +19,8 @@ #include "mbyte.h" #include "charset.h" +#include "lib/intl.h" + #include #include @@ -438,7 +431,7 @@ size_t utf8rtowc (wchar_t * pwc, const char *s, size_t n, mbstate_t * _ps) #endif /* !HAVE_WC_FUNCS */ -wchar_t replacement_char () +wchar_t replacement_char (void) { return Charset_is_utf8 ? 0xfffd : '?'; }