Page 1 of 1

Extra space char in french and german for FORMAT_DOS date

Posted: Mon Apr 29, 2013 1:39 pm
by zzd10h
Hi,
For my C programs, I use Date2Amiga with dat_Format FORMAT_DOS to display dates.

In french and german, there are extra blank characters at the end of date.
In the following picture, you can notice that

for french date, there are 2 extra blank characters before the last "XXX"
for german date, there are 1 extra blank character before the last "XXX"

for UK, italian, greek, spanish and swedisch, it looks goog.

http://zzd10h.amiga-ng.org/Divers/Bug_Date_FR_DE.jpg

executable to test (by changing your prefs/locale) and source code availables
http://zzd10h.amiga-ng.org/Divers/BugDate_FR.lha

is it just on my system (with french or german locales) or is it the same for you ?
Thank you

Guillaume

Re: Extra space char in french and german for FORMAT_DOS dat

Posted: Mon Apr 29, 2013 11:09 pm
by zzd10h
Another french user has confirmed me the problem with my sample.

Re: Extra space char in french and german for FORMAT_DOS dat

Posted: Tue Apr 30, 2013 9:38 am
by kas1e
If you will write text of BZ (name of bz, body, all necessary info), i will add it.

Re: Extra space char in french and german for FORMAT_DOS dat

Posted: Tue Apr 30, 2013 10:02 am
by zzd10h
Thank you Kas1e.
Isn't my post description and C sample with screenshot enough ?

Edit : If not, could you send me a bug report sample ?

Re: Extra space char in french and german for FORMAT_DOS dat

Posted: Tue Apr 30, 2013 11:59 am
by abalaban
@kas1e

Elwood or I will take care of investigating this further and reporting to the right component. I have very little time (to no time at all) myself until this week-end so if Elwood didn't reported it at that time I'll do it on Saturday.

Re: Extra space char in french and german for FORMAT_DOS dat

Posted: Tue Apr 30, 2013 3:35 pm
by kas1e
@abalaban
Aha ok

@zzd10h
Let's wait one more week, if Abalaban and Elwood will have no time, i will help

Re: Extra space char in french and german for FORMAT_DOS dat

Posted: Wed May 01, 2013 12:08 am
by Elwood
Checked, confirmed and bug report filled, #8366

Re: Extra space char in french and german for FORMAT_DOS dat

Posted: Wed May 01, 2013 11:07 am
by zzd10h
Thank you,
when using others formats for dat_Format, it's OK in french, no extra character at the end of string.

FORMAT_INT OK
FORMAT_USA OK
FORMAT_CDN OK
FORMAT_DEF OK
FORMAT_ISO OK

Re: Extra space char in french and german for FORMAT_DOS dat

Posted: Fri Jun 21, 2013 6:18 pm
by zzd10h
With Locale.library 53.6, newly available,
my problem of date format is solved.

Thank you !