"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "otherconv.c" between
jpilot-1.8.2.tar.gz and jpilot-2_0_1.tar.gz

About: J-Pilot is a desktop organizer application for Palm Pilot (PalmOS) devices. Ported to GTK3.

otherconv.c  (jpilot-1.8.2):otherconv.c  (jpilot-2_0_1)
skipping to change at line 168 skipping to change at line 168
OC_FREE_ICONV(glob_topda); OC_FREE_ICONV(glob_topda);
OC_FREE_ICONV(glob_frompda); OC_FREE_ICONV(glob_frompda);
} }
/* /*
* Conversion to UTF using g_convert_with_iconv * Conversion to UTF using g_convert_with_iconv
* A new buffer is now allocated and the old one remains unchanged * A new buffer is now allocated and the old one remains unchanged
*/ */
char *other_to_UTF(const char *buf, int buf_len) char *other_to_UTF(const char *buf, int buf_len)
{ {
size_t rc;
char *outbuf; char *outbuf;
gsize bytes_read; gsize bytes_read;
GError *err = NULL; GError *err = NULL;
size_t str_len; size_t str_len;
#ifdef OTHERCONV_DEBUG #ifdef OTHERCONV_DEBUG
jp_logf(JP_LOG_DEBUG, "%s:%s reset iconv state...\n", __FILE__, __FUNCTION__) ; jp_logf(JP_LOG_DEBUG, "%s:%s reset iconv state...\n", __FILE__, __FUNCTION__) ;
#endif #endif
rc = g_iconv(glob_frompda, NULL, NULL, NULL, NULL); g_iconv(glob_frompda, NULL, NULL, NULL, NULL);
#ifdef OTHERCONV_DEBUG #ifdef OTHERCONV_DEBUG
jp_logf(JP_LOG_DEBUG, "%s:%s converting [%s]\n", __FILE__, __FUNCTION__, bu f); jp_logf(JP_LOG_DEBUG, "%s:%s converting [%s]\n", __FILE__, __FUNCTION__, bu f);
#endif #endif
if (buf_len == -1) { if (buf_len == -1) {
str_len = -1; str_len = -1;
} else { } else {
str_len = oc_strnlen(buf, buf_len-1); // -1 leaves room for \0 terminator str_len = oc_strnlen(buf, buf_len-1); // -1 leaves room for \0 terminator
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)