*** /home/nags/fd.o/ldtp/src/client-handler.c 2006-09-27 09:02:22.000000000 -0800 --- client-handler.c 2006-10-05 06:28:58.000000000 -0800 *************** createpo (gchar *package_name, gchar *lo *** 589,597 **** g_free (mopathfilename); } } - #endif - #ifdef ENABLE_LOCALIZATION static void deletepo (char *filename, FILE *log_fp, LDTPError **err) { --- 589,595 ---- *************** handle_client (void *ptr) *** 1430,1436 **** char *resp_pckt = NULL; LDTPError* err = NULL; - gchar *locale_lang = NULL; LDTPClientContext *cctxt = NULL; Packet *pckt = NULL; --- 1428,1433 ---- *************** handle_client (void *ptr) *** 1443,1449 **** --- 1440,1449 ---- cctxt->resp = calloc (1, sizeof (LDTPResponse)); cctxt->sock_fd = *sock_fd; cctxt->log_fp = NULL; + cctxt->locale_set = FALSE; + #ifdef ENABLE_LOCALIZATION + gchar *locale_lang = NULL; /* Check whether locale lang set or not */ *************** handle_client (void *ptr) *** 1453,1460 **** g_print ("Locale languages: %s\n", locale_lang); cctxt->locale_set = TRUE; setlocale (LC_ALL, ""); ! } else ! cctxt->locale_set = FALSE; while (1) { packet_len = 0; --- 1453,1460 ---- g_print ("Locale languages: %s\n", locale_lang); cctxt->locale_set = TRUE; setlocale (LC_ALL, ""); ! } ! #endif while (1) { packet_len = 0;