Check-in [015d254dbe]
Overview
Comment:Fixed determination of encoding from system in KitDLL
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:015d254dbe60204994a37928f284e4f860d18211
User & Date: rkeene on 2010-10-02 06:58:39
Other Links: manifest | tags
Context
2010-10-02
08:39
Updated Minkit build scripts to support buildint KitDLL

Added fix for building KitDLL on platforms without working "strtod"

Updated to support compiling TclVFS extension with "-fPIC" when building KitDLL check-in: e143e5ef08 user: rkeene tags: trunk

06:58
Fixed determination of encoding from system in KitDLL check-in: 015d254dbe user: rkeene tags: trunk
06:14
Add documentation about KitDLL check-in: bf5a9f5551 user: rkeene tags: trunk
Changes

Modified kitdll/buildsrc/kitdll-0.0/configure.ac from [1f754d4d41] to [ae66df7b9e].

    16     16   AC_SEARCH_LIBS(dlsym, dl,, [ AC_MSG_WARN([Couldn't find dlsym (normally in libdl)!]) ])
    17     17   
    18     18   dnl Determine how to create a shared object
    19     19   DC_GET_SHOBJFLAGS
    20     20   
    21     21   dnl Find the appropriate Tcl headers and libraries
    22     22   DC_DO_TCL
           23  +
           24  +dnl Find required libs
           25  +DC_FIND_TCLKIT_LIBS
    23     26   
    24     27   dnl Check for Tcl features
    25     28   SAVE_LIBS="${LIBS}"
    26     29   LIBS="${ARCHS} ${LIBS}"
    27     30   dnl Check for the ability to get the current system encoding
    28     31   AC_CHECK_FUNCS(Tcl_GetEncodingNameFromEnvironment Tcl_SetSystemEncoding)
    29     32   LIBS="${SAVE_LIBS}"
    30     33   
    31         -dnl Find required libs
    32         -DC_FIND_TCLKIT_LIBS
    33         -
    34     34   dnl Find extra objects we need to link as a part of "libtclkit"
    35     35   AC_SUBST(EXTRA_OBJS)
    36     36   
    37     37   dnl Check for optional headers
    38     38   AC_HEADER_STDC
    39     39   AC_CHECK_HEADERS(unistd.h string.h strings.h)
    40     40   

Modified kitdll/buildsrc/kitdll-0.0/kitInit.c from [1913b3a1f3] to [733eebf3f2].

   200    200   
   201    201   /*
   202    202    * This function exists to allow C code to initialize a particular
   203    203    * interpreter.
   204    204    */
   205    205   static int tclkit_init_initinterp(ClientData cd, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
   206    206   	char *kitdll_path;
          207  +#ifdef TCLKIT_CAN_SET_ENCODING
          208  +	Tcl_DString encodingName;
          209  +#endif /* TCLKIT_CAN_SET_ENCODING */
          210  +
   207    211   
   208    212   #ifdef _WIN32
   209    213   	Tcl_SetVar(interp, "tcl_rcFileName", "~/tclkitrc.tcl", TCL_GLOBAL_ONLY);
   210    214   #else   
   211    215   	Tcl_SetVar(interp, "tcl_rcFileName", "~/.tclkitrc", TCL_GLOBAL_ONLY);
   212    216   #endif
   213    217   
................................................................................
   220    224   
   221    225   	FindAndSetExecName(interp);
   222    226   
   223    227   #ifdef TCLKIT_CAN_SET_ENCODING
   224    228   	/* Set the encoding from the Environment */
   225    229   	Tcl_GetEncodingNameFromEnvironment(&encodingName);
   226    230   	Tcl_SetSystemEncoding(NULL, Tcl_DStringValue(&encodingName));
   227         -	Tcl_SetVar(interp, "tclkit_system_encoding", Tcl_DStringValue(&encodingName), 0);
          231  +	Tcl_SetVar(interp, "tclkit_system_encoding", Tcl_DStringValue(&encodingName), TCL_GLOBAL_ONLY);
   228    232   	Tcl_DStringFree(&encodingName);
   229    233   #endif  
   230    234   
   231    235   	return(TCL_OK);
   232    236   }
   233    237   
   234    238   /*