added LANG=C to the commands which read the used space of a filesystem.
* 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.
This commit is contained in:
parent
575cde4058
commit
c7f04242a3
|
@ -1,3 +1,10 @@
|
|||
2004-12-09 Bart Hakvoort <gparted@users.sf.net>
|
||||
|
||||
* 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 <gparted@users.sf.net>
|
||||
|
||||
* added MIN and MAX to filesystemstruct to set min. and max sizes of a filesystem. So instead of checking per filesystem
|
||||
|
|
|
@ -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 ) ;
|
||||
|
|
|
@ -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 ) ;
|
||||
|
|
|
@ -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 ) ;
|
||||
|
|
|
@ -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 ) ;
|
||||
|
|
Loading…
Reference in New Issue