[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xlog-discussion] date of QSO
From: |
Andy Stewart |
Subject: |
Re: [Xlog-discussion] date of QSO |
Date: |
Tue, 28 May 2013 22:27:18 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
On 05/26/2013 11:08 AM, Alex wrote:
Hello all !
the date in the QSO data are filled by my Russian as "13 Май 2013" (
angl. "13 May 2013") and an error when exporting to other formats. In
this case, enter the data correctly fldigi. For example, part of the log
that was exported cabrillo:
QSO: 14242 PH 05 Май 20131443 EW1LN 59 RP68AH
59 err
QSO: 7139 PH 05 Май 20131522 EW1LN 59 RP68ST
59 err
QSO: 14166 PH 05 Май 20131526 EW1LN 59 RP68GR
57 err
QSO: 7086 PH 05 Май 20131552 EW1LN 59 RP68MG
59 err
QSO: 7071 PH 05 Май 20131557 EW1LN 59 RP68KA
59 err
QSO: 14082 RY 2013-05-05 1601 EW1LN 599 RP68GS
599 ok
QSO: 7043 RY 2013-05-06 1752 EW1LN 599 RP68IS
599 ok
QSO: 7041 2013-05-06 1801 EW1LN 599 RP68O
599 ry lost psk63
QSO: 7041 2013-05-06 1819 EW1LN 599 RP68GD
599 ry lost psk63
QSO: 7042 RY 2013-05-06 1823 EW1LN 599 RP68T
599 ok
QSO: 7041 RY 2013-05-06 1901 EW1LN 599 EM68U
599 ok
QSO: 7041 2013-05-06 1903 EW1LN 599 RP68GT
599 ry lost psk63
QSO: 7035 2013-05-06 1906 EW1LN 599 RP68BR
599 ry lost psk31
this log export by 2.0.8
Hello Alex,
Thank you for reporting this problem to me.
The existing code looks for a very specific format in the date field:
dd mmm yyyy
where dd is two bytes for a date (one byte for each digit)
mmm is 3 bytes for the month (one byte for each character)
yyyy is 4 bytes for the year (one byte for each digit)
where the total length must be exactly 11 bytes
If that format of the date is present in the log, it will be converted
to yyyy-mm-dd in the exported cabrillo output file.
If the date format is something different, the code just copies it to
the exported output file, which is what you are seeing.
I cut/pasted the date from your email into xlog and I duplicated the
problem. Your month in the Russian language appears to be encoded as 6
bytes, not 3 bytes, which the code does not correctly handle.
I have created a patch that I would like you to please try (attached to
this email).
I do not have the Russian language locale files on my computer. If you
have the LC_TIME environment variable set correctly (perhaps
"ru_RU.UTF-8"), I think this will fix the problem for Cabrillo export.
73,
Andy
--
Andy Stewart (KB1OIQ)
Founder: Worcester Linux Users' Group
Founder: Chelmsford Linux Meetup Group
President: PART of Westford, MA (WB1GOF)
diff.txt
Description: Text document