Commit 4a0547e0 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg
Browse files

For Vlad Harchev <hvv@hippo.ru>


2001-06-03 Jody Goldberg <jgoldberg@home.com>
	For Vlad Harchev <hvv@hippo.ru>

        * ms-excel-util.h ms-excel-util.c (excel_wcstombs) :
	  Some utilites to handle encoding changes that fail.

        * ms-excel-read.c : Use the utilities.
parent 04f4c1cd
2001-06-03 Jody Goldberg <jgoldberg@home.com>
For Vlad Harchev <hvv@hippo.ru>
* ms-excel-util.h ms-excel-util.c (excel_wcstombs) :
Some utilites to handle encoding changes that fail.
* ms-excel-read.c : Use the utilities.
2001-06-02 Almer S. Tigelaar <almer@gnome.org>
* (ms_excel_read_row): Set outline using
......
......@@ -181,7 +181,7 @@ get_chars (const char *ptr, guint length, gboolean high_byte)
wc [lp] = c;
}
retlength = wcstombs (ans, wc, length);
retlength = excel_wcstombs (ans, wc, length);
g_free (wc);
if (retlength == (size_t)-1)
retlength = 0;
......
This diff is collapsed.
......@@ -79,6 +79,12 @@ void excel_iconv_close (excel_iconv_t handle);
size_t excel_iconv (excel_iconv_t handle, char const **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft);
/* Same as wcstombs(3), but tries to convert as much characters as possible,
* replacing the ones it can't convert with '?' or something resembling
* original character (e.g. "(C)" for copyright sign).
*/
size_t excel_wcstombs(char* outbuf,wchar_t* wc,size_t length);
void destroy_xl_font_widths (void);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment