View | Details | Raw Unified
Collapse All | Expand All

(-) src/utf8.c-orig (+6 lines)
 Lines 24-30    Link Here 
// Standard includes
// Standard includes
#include <stdlib.h>
#include <stdlib.h>
#if  !defined(HAVE_CONFIG_H) || defined(HAVE_ICONV) 
#include <iconv.h>
#include <iconv.h>
#endif 
#include <langinfo.h>
#include <langinfo.h>
#include <locale.h>
#include <locale.h>
#include <string.h>
#include <string.h>
 Lines 35-40    Link Here 
static char *iconv_from_utf8_to_locale(const char *string, const char* fallback_string)
static char *iconv_from_utf8_to_locale(const char *string, const char* fallback_string)
{
{
#if !defined(HAVE_CONFIG_H) || defined(HAVE_ICONV)
  const size_t buffer_inc = 80;	// Increment buffer size in 80 bytes step
  const size_t buffer_inc = 80;	// Increment buffer size in 80 bytes step
  const char *charset;
  const char *charset;
  iconv_t cd;
  iconv_t cd;
 Lines 95-100    Link Here 
    free(dest_buffer);  		// free buffer
    free(dest_buffer);  		// free buffer
  free(src_buffer);			// free string
  free(src_buffer);			// free string
  return strdup(fallback_string); 	// and return fallback string
  return strdup(fallback_string); 	// and return fallback string
#else // No iconv available
  return strdup(fallback_string);       // and return fallback string
#endif
}
}
char *degree_sign()
char *degree_sign()