Bug 72934 - date reported by kio_floppy is false
Summary: date reported by kio_floppy is false
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: floppy (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Alexander Neundorf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-19 09:07 UTC by Philippe Bourdeu d'Aguerre
Modified: 2004-02-07 18:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Bourdeu d'Aguerre 2004-01-19 09:07:48 UTC
Version:            (using KDE KDE 3.1.5)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3.2 
OS:          Solaris

kio-floppy uses mtools to get files infos. I expects date from mdir as MM-DD-YYYY but mdir gives date as YYYY-MM-DD.

To get good date, in kio-floppy.cpp line 44 I changed
    day=line.mid(26,2);
    month=line.mid(23,2);
    year=line.mid(29,4);
by
   day=line.mid(31,2);
   month=line.mid(28,2);
   year=line.mid(23,4);

I have mtools 3.9.9
Comment 1 Alexander Neundorf 2004-02-05 18:49:45 UTC
Which version of mtools do you use ?
Do you use plain american english version or do you use some localisation ?

Bye
Alex
Comment 2 Philippe Bourdeu d'Aguerre 2004-02-05 19:11:11 UTC
Subject: Re:  date reported by kio_floppy is false

Le jeudi 5 Février 2004 18:49, Alexander Neundorf a écrit :
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=72934
> neundorf@kde.org changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Status|UNCONFIRMED                 |NEW
>       everconfirmed|0                           |1
>
>
>
> ------- Additional Comments From neundorf@kde.org  2004-02-05 18:49 -------
> Which version of mtools do you use ?
> Do you use plain american english version or do you use some localisation ?
>
mtools 3.9.9

I use KDE 3.2.0 in french. mtools doesn't seem to be localized.
Here is an example of mdir output (a quite old disquette !):
----------------------------------------------------------------------------
 Volume in drive A has no label
 Volume Serial Number is 4167-12D1
Directory for A:/

_INST32I EX_    307785 1997-09-25  10:30  _inst32i.ex_
_ISDEL   EXE      8192 1997-09-25  10:30  _isdel.exe
_SETUP   DLL     10750 1997-09-25  10:30  _setup.dll
_SETUP   LIB    267369 1997-09-25  10:30  _setup.lib
AFILES   Z       96620 1997-09-25  10:30  afiles.z
DFAPPS   INI        88 1997-09-25  10:30  dfapps.ini
F-PROTW  CFG      1763 1997-09-25  10:30  f-protw.cfg
FFILE9   1       79193 1997-09-25  10:30  ffile9.1
GFILES   Z      275058 1997-09-25  10:30  gfiles.z
SCANA    FPT       551 1997-09-25  10:31  scana.fpt
SCANALLH FPT       572 1997-09-25  10:31  scanallh.fpt
SCANAT   FPT       552 1997-09-25  10:31  scanat.fpt
SCANB    FPT       551 1997-09-25  10:31  scanb.fpt
SCANNETW FPT       554 1997-09-25  10:31  scannetw.fpt
SETUP    EXE     47616 1997-09-25  10:31  setup.exe
SETUP    INI       354 1997-09-25  10:31  setup.ini
SETUP    INS     83250 1997-09-25  10:31  setup.ins
SETUP    PKG      1019 1997-09-25  10:31  setup.pkg
WFILES   Z      261249 1997-09-25  10:31  wfiles.z
       19 files           1 443 086 bytes
                              9 216 bytes free

----------------------------------------------------------------------------
Output is yyyy-mm-dd. It's why I need my patch.
Comment 3 Alexander Neundorf 2004-02-05 22:05:57 UTC
Subject: Re:  date reported by kio_floppy is false

On Thursday 05 February 2004 19:11, you wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=72934

Ok, I'll fix it in the next days.

Bye
Alex
Comment 4 Alexander Neundorf 2004-02-07 18:59:26 UTC
fixed both in HEAD and 3_2_BRANCH