[gparted] Display ntfs unicode volume labels properly



commit 2ae36153ee52d95799b27bf1b95afde1b94e2b02
Author: Curtis Gedak <gedakc gmail com>
Date:   Tue Nov 1 13:05:42 2011 -0600

    Display ntfs unicode volume labels properly
    
    Prompted by Bug #662537 - Ext4 unicode labels not shown correctly

 src/ntfs.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ntfs.cc b/src/ntfs.cc
index a57faee..ce11631 100644
--- a/src/ntfs.cc
+++ b/src/ntfs.cc
@@ -85,9 +85,9 @@ void ntfs::set_used_sectors( Partition & partition )
 
 void ntfs::read_label( Partition & partition )
 {
-	if ( ! Utils::execute_command( "ntfslabel --force " + partition .get_path(), output, error, true ) )
+	if ( ! Utils::execute_command( "ntfslabel --force " + partition .get_path(), output, error, false ) )
 	{
-		partition .label = Utils::regexp_label( output, "^(.*)" ) ;
+		partition .label = Utils::trim( output ) ;
 	}
 	else
 	{



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]