From 323c7f177ec76fa64dfe239806d0f5ba365c51c7 Mon Sep 17 00:00:00 2001 From: kh1 Date: Tue, 30 Apr 2013 14:04:20 +0200 Subject: Reset to only use the basic LZMA SDK (Unix). Change-Id: Ic7607229197f74cdf88c46684b1413e00466185d Reviewed-by: Niels Weber --- .../7zip/unix/CPP/myWindows/mySplitCommandLine.cpp | 82 ---------------------- 1 file changed, 82 deletions(-) delete mode 100644 src/libs/7zip/unix/CPP/myWindows/mySplitCommandLine.cpp (limited to 'src/libs/7zip/unix/CPP/myWindows/mySplitCommandLine.cpp') diff --git a/src/libs/7zip/unix/CPP/myWindows/mySplitCommandLine.cpp b/src/libs/7zip/unix/CPP/myWindows/mySplitCommandLine.cpp deleted file mode 100644 index 9e0791992..000000000 --- a/src/libs/7zip/unix/CPP/myWindows/mySplitCommandLine.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include "StdAfx.h" - -#include "../Common/StringConvert.h" - -#include "myPrivate.h" - -#ifdef ENV_HAVE_LOCALE -#include -#endif - -extern void my_windows_split_path(const AString &p_path, AString &dir , AString &base); - -void mySplitCommandLine(int numArguments,const char *arguments[],UStringVector &parts) { - - { // define P7ZIP_HOME_DIR - static char p7zip_home_dir[MAX_PATH]; - AString dir,name; - my_windows_split_path(arguments[0],dir,name); - snprintf(p7zip_home_dir,sizeof(p7zip_home_dir),"P7ZIP_HOME_DIR=%s/",(const char *)dir); - p7zip_home_dir[sizeof(p7zip_home_dir)-1] = 0; - putenv(p7zip_home_dir); - } - -#ifdef ENV_HAVE_LOCALE - // set the program's current locale from the user's environment variables - setlocale(LC_ALL,""); - - - // auto-detect which conversion p7zip should use - char *locale = setlocale(LC_CTYPE,0); - if (locale) { - size_t len = strlen(locale); - char *locale_upper = (char *)malloc(len+1); - if (locale_upper) { - strcpy(locale_upper,locale); - - for(size_t i=0;i