fixed bug with LC_NUMERIC=C .. (thanks to mantiena for reporting)

* src/hfs.cc,
  src/jfs.cc,
  src/ntfs.cc,
  src/reiserfs.cc : fixed bug with LC_NUMERIC=C .. (thanks to mantiena for reporting)
This commit is contained in:
Bart Hakvoort 2005-02-08 10:40:33 +00:00
parent 0d8f7d0492
commit 16abf01de4
5 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2005-02-08 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/hfs.cc,
src/jfs.cc,
src/ntfs.cc,
src/reiserfs.cc : fixed bug with LC_NUMERIC=C .. (thanks to mantiena for reporting)
2005-02-06 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/Win_GParted.cc: fixed a potential infinite loop in Show_Pulsebar() (thanks to xilun)

View File

@ -48,7 +48,7 @@ void hfs::Set_Used_Sectors( Partition & partition )
Glib::ustring output ;
//get free bytes..
f = popen( ( "LC_ALL=C echo 'quit' | hfs " + partition .partition ) .c_str( ), "r" ) ;
f = popen( ( "echo 'quit' | LC_ALL=C hfs " + partition .partition ) .c_str( ), "r" ) ;
while ( fgets( c_buf, 512, f ) )
{
output = Glib::locale_to_utf8( c_buf ) ;

View File

@ -67,7 +67,7 @@ void jfs::Set_Used_Sectors( Partition & partition )
Glib::ustring output ;
//get free sectors..
f = popen( ( "LC_ALL=C echo dm | jfs_debugfs " + partition .partition ) .c_str( ), "r" ) ;
f = popen( ( "echo dm | LC_ALL=C jfs_debugfs " + partition .partition ) .c_str( ), "r" ) ;
while ( fgets( c_buf, 512, f ) )
{
output = Glib::locale_to_utf8( c_buf ) ;

View File

@ -81,7 +81,7 @@ bool ntfs::Create( const Partition & new_partition )
bool ntfs::Resize( const Partition & partition_new, bool fill_partition )
{
Glib::ustring str_temp = "LC_NUMERIC=C echo y | ntfsresize -f " + partition_new .partition ;
Glib::ustring str_temp = "echo y | LC_NUMERIC=C ntfsresize -f " + partition_new .partition ;
if ( ! fill_partition )
str_temp += " -s " + num_to_str( partition_new .Get_Length_MB( ) - cylinder_size ) + "M" ;

View File

@ -89,7 +89,7 @@ bool reiserfs::Create( const Partition & new_partition )
bool reiserfs::Resize( const Partition & partition_new, bool fill_partition )
{
Glib::ustring str_temp = "LC_NUMERIC=C echo y | resize_reiserfs " + partition_new .partition ;
Glib::ustring str_temp = "echo y | LC_NUMERIC=C resize_reiserfs " + partition_new .partition ;
if ( ! fill_partition )
str_temp += " -s " + num_to_str( partition_new .Get_Length_MB( ) - cylinder_size ) + "M" ;