[gparted] Fix attempt data rescue fail to open read-only view (#673246)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Fix attempt data rescue fail to open read-only view (#673246)
- Date: Tue, 3 Apr 2012 18:43:42 +0000 (UTC)
commit e494eca1f7798d98cc4e83fb2875f1c409d0ac98
Author: Joan Lledà <joanlluislledo gmail com>
Date: Tue Apr 3 20:16:54 2012 +0200
Fix attempt data rescue fail to open read-only view (#673246)
Dialog_Rescue_Data::on_view_clicked(): String::ucompose() no longer
used due to a bug with some locales.
src/Dialog_Rescue_Data.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Dialog_Rescue_Data.cc b/src/Dialog_Rescue_Data.cc
index f48f53c..5119a7c 100644
--- a/src/Dialog_Rescue_Data.cc
+++ b/src/Dialog_Rescue_Data.cc
@@ -182,7 +182,8 @@ void Dialog_Rescue_Data::on_view_clicked(int nPart)
Glib::ustring mountPoint=tmpDir;
- Glib::ustring commandLine= String::ucompose("mount -o ro,loop,offset=%1,sizelimit=%2 %3 %4", initOffset, totalSize, this->device_path, mountPoint);
+ Glib::ustring commandLine= "mount -o ro,loop,offset="+Utils::num_to_str(initOffset)
+ +",sizelimit="+Utils::num_to_str(totalSize)+" "+this->device_path+" "+mountPoint;
int mountResult=Utils::execute_command(commandLine);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]