The setting of the display charset is now done by
convert_string_talloc() selecting the right charset based on
CH_DISPLAY.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
#include "includes.h"
#include "system/locale.h"
-static smb_iconv_t display_cd = (smb_iconv_t)-1;
-
static int d_vfprintf(FILE *f, const char *format, va_list ap)
{
char *p, *p2;
bool cret;
va_list ap2;
- /* If there's nothing to convert, take a shortcut */
- if (display_cd == (smb_iconv_t)-1) {
- return vfprintf(f, format, ap);
- }
-
va_copy(ap2, ap);
ret = vasprintf(&p, format, ap2);
va_end(ap2);