diff --git a/ChangeLog b/ChangeLog index 62d06b0d..3162cf21 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-12-09 Bart Hakvoort + + * src/ext2.cc, + src/ext3.cc, + src/ntfs.cc, + src/reiserfs.cc: added LANG=C to the commands which read the used space of a filesystem. This prevent errors with some locales. + 2004-12-09 Bart Hakvoort * added MIN and MAX to filesystemstruct to set min. and max sizes of a filesystem. So instead of checking per filesystem diff --git a/src/ext2.cc b/src/ext2.cc index 0d0898db..c87d4d6a 100644 --- a/src/ext2.cc +++ b/src/ext2.cc @@ -54,7 +54,7 @@ void ext2::Set_Used_Sectors( Partition & partition ) Sector free_blocks = -1, blocksize = -1 ; //get free blocks.. - f = popen( ( "dumpe2fs -h " + partition .partition ) .c_str( ), "r" ) ; + f = popen( ( "LANG=C dumpe2fs -h " + partition .partition ) .c_str( ), "r" ) ; while ( fgets( c_buf, 512, f ) ) { output = Glib::locale_to_utf8( c_buf ) ; diff --git a/src/ext3.cc b/src/ext3.cc index f08c7220..29303568 100644 --- a/src/ext3.cc +++ b/src/ext3.cc @@ -54,7 +54,7 @@ void ext3::Set_Used_Sectors( Partition & partition ) Sector free_blocks = -1, blocksize = -1 ; //get free blocks.. - f = popen( ( "dumpe2fs -h " + partition .partition ) .c_str( ), "r" ) ; + f = popen( ( "LANG=C dumpe2fs -h " + partition .partition ) .c_str( ), "r" ) ; while ( fgets( c_buf, 512, f ) ) { output = Glib::locale_to_utf8( c_buf ) ; diff --git a/src/ntfs.cc b/src/ntfs.cc index 1effb377..87e6e8e0 100644 --- a/src/ntfs.cc +++ b/src/ntfs.cc @@ -55,7 +55,7 @@ void ntfs::Set_Used_Sectors( Partition & partition ) Sector free_sectors = -1 ; //get free sectors.. - f = popen( ( "ntfscluster --force " + partition .partition ) .c_str( ), "r" ) ; + f = popen( ( "LANG=C ntfscluster --force " + partition .partition ) .c_str( ), "r" ) ; while ( fgets( c_buf, 512, f ) ) { output = Glib::locale_to_utf8( c_buf ) ; diff --git a/src/reiserfs.cc b/src/reiserfs.cc index 8295ba39..05a67b50 100644 --- a/src/reiserfs.cc +++ b/src/reiserfs.cc @@ -58,7 +58,7 @@ void reiserfs::Set_Used_Sectors( Partition & partition ) Sector free_blocks = -1, blocksize = -1 ; //get free blocks.. - f = popen( ( "debugreiserfs " + partition .partition ) .c_str( ), "r" ) ; + f = popen( ( "LANG=C debugreiserfs " + partition .partition ) .c_str( ), "r" ) ; while ( fgets( c_buf, 512, f ) ) { output = Glib::locale_to_utf8( c_buf ) ;