Re: gnome-pilot-list Digest, Vol 19, Issue 3



I've received info about other patch to pilot-link in my
distribution(PLD) and it helped.
Here it is

--- pilot-link-0.11.3-back/libpisock/util.c Tue Jul 30 19:37:13 2002
+++ pilot-link-0.11.3/libpisock/util.c  Fri Aug 16 10:26:34 2002
@@ -32,7 +32,7 @@
 #include <iconv.h>
 #endif

-#define PILOT_CHARSET "CP1252"
+#define DEFAULT_PILOT_CHARSET "CP1252"

 /***********************************************************************
  *
@@ -55,8 +55,14 @@
        *ob;
    iconv_t cd;
    size_t  ibl, obl;
+   char *charset_env;
+
+   charset_env = getenv("PILOTCHARSET");
+   if (charset_env)
+       cd = iconv_open(charset_env, charset);
+   if (!charset_env || !cd)
+       cd = iconv_open(DEFAULT_PILOT_CHARSET, charset);

-   cd = iconv_open(PILOT_CHARSET, charset);
    if (!cd)
        return -1;

@@ -98,8 +104,14 @@
        *ob;
    iconv_t cd;
    size_t  ibl, obl;
+   char *charset_env;
+
+   charset_env = getenv("PILOTCHARSET");
+   if (charset_env)
+       cd = iconv_open(charset_env, charset);
+   if (!charset_env || !cd)
+   cd = iconv_open(DEFAULT_PILOT_CHARSET, charset);

-   cd = iconv_open(charset, PILOT_CHARSET);
    if (!cd)
        return -1;


> The approach is to modify pilot-link. (pilot-link-0.12.0-pre4)
> In file libpisync/util.c, add include files and change a macro, as below.
> 
> #ifdef HAVE_CONFIG_H
> #include <config.h>
> #endif
> 
> #include <stdlib.h>
> #include <string.h>
> #include "pi-util.h"
> 
> #ifdef HAVE_ICONV
> #include <iconv.h>
> #endif
> 
> #include <locale.h>
> 
> #define  PILOT_CHARSET setlocale( LC_ALL,NULL )
> 
> Please do tell me if it works for you after trying.
> 
> Thanks.
> Calvin
> 
> pH4Lk0n wrote:
> 
> >Welcome,
> >I have a big problem with synchronization data form Evolution to my
> >Palm Zire 71.
> >Synchronization goes ok with no errors.
> >But for no reason it sends all data in strange code page.
> >I use ISO8859-2 in all my apllications and I've installed fonts with
> >this code page on my Palm, but Evolution sends it in difrent code
> >page.
> >It looks like UTF-8 but I'm no quite sure.
> >How can I convince gnome-pilot to do synchronization in ISO8859-2,
> >eventualty in windows-1250 (I've got both installed on my Palm).
> >Please help.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]