secureswitools/swisistools/source/interpretsis/commandparser.cpp
branchRCL_3
changeset 81 42552535c1ac
parent 73 79647526f98c
--- a/secureswitools/swisistools/source/interpretsis/commandparser.cpp	Wed Sep 15 12:20:42 2010 +0300
+++ b/secureswitools/swisistools/source/interpretsis/commandparser.cpp	Wed Oct 13 14:40:19 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -170,8 +170,8 @@
 
 void CCommandParser::DisplayVersion()
 	{
-	std::cout << "\nINTERPRETSIS  " << " Version  2.2.0 ." << std::endl;
-	std::cout << "Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.\n " << std::endl;
+	std::cout << "\nINTERPRETSIS  " << " Version  2.1.3 ." << std::endl;
+	std::cout << "Copyright (c) 2009 Symbian Software Ltd. All rights reserved.\n " << std::endl;
 	}
  
 
@@ -386,7 +386,7 @@
 				}
 			default:
 				{
-				LERROR(string2wstring(std::string(optPtr)));
+				LERROR(Utf8ToUcs2(std::string(optPtr)));
 				throw CCommandParser::ECmdLineUnknownOption;
 				}
 			}
@@ -447,7 +447,8 @@
 	while (currentPos != end)
 	    {
 		currentPos = std::find(it, end, ',');
-		std::wstring x = string2wstring(std::string(it,(currentPos-it)));
+		std::wstring x;
+		Utf8ToUcs2(std::string(it,(currentPos-it)), x);
 		//aOptionsList.push_back(x);
 		(aParamList.*aFilePtr)(x);
 
@@ -474,7 +475,8 @@
 	while (currentPos != end)
 	    {
 		currentPos = std::find(it, end, ',');
-		std::wstring x = string2wstring(std::string(it,(currentPos-it)));
+		std::wstring x;
+		Utf8ToUcs2(std::string(it,(currentPos-it)), x);
 
 		InstallSISFile sisFileName(x, '$', false);
 		aParamList.AddSISFile(sisFileName);
@@ -492,7 +494,8 @@
 	// As the sisfile attributes are predetermined input, therefore we can just
 	// parse according to the predetermined inputs.
 
-	std::wstring fileName = string2wstring(sisFileOption);
+	std::wstring fileName;
+	Utf8ToUcs2(sisFileOption, fileName);
 
 	InstallSISFile sisFileName(fileName, '$', false);
 		
@@ -523,19 +526,9 @@
 
 				char drive = tolower(*++optPtr);
 
-				if (drive < 'a' || drive > 'z')
+				if (drive < 'a' || drive > 'y')
 					throw CCommandParser::ECmdLineInvalidSISFileAttribute;
 
-				if(drive == 'z')
-					{
-					aParamList.SetFlag(CParameterList::EFlagsRomInstallSet);
-					sisFileName.iGenerateRomStub = true;
-					sisFileName.iNotRegister = true;
-					}
-				else
-					{
-					aParamList.SetFlag(CParameterList::EFlagsExtDriveSet);
-					}
 				// Set target drive
 				sisFileName.iTargetDrive = drive;