Extra space char in french and german for FORMAT_DOS date

This forum is for general developer support questions.
Post Reply
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 6:40 am
Location: France

Extra space char in french and german for FORMAT_DOS date

Post 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
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 6:40 am
Location: France

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

Post by zzd10h »

Another french user has confirmed me the problem with my sample.
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
kas1e
Beta Tester
Beta Tester
Posts: 543
Joined: Sat Jun 18, 2011 8:56 am
Contact:

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

Post by kas1e »

If you will write text of BZ (name of bz, body, all necessary info), i will add it.
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 6:40 am
Location: France

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

Post 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 ?
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
User avatar
abalaban
Beta Tester
Beta Tester
Posts: 456
Joined: Mon Dec 20, 2010 2:09 pm
Location: France
Contact:

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

Post 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.
AmigaOne X1000 running AOS 4 beta
AmigaOne XE/G4
Amiga 1200/PPC 603e + BVision PPC
kas1e
Beta Tester
Beta Tester
Posts: 543
Joined: Sat Jun 18, 2011 8:56 am
Contact:

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

Post by kas1e »

@abalaban
Aha ok

@zzd10h
Let's wait one more week, if Abalaban and Elwood will have no time, i will help
User avatar
Elwood
Posts: 65
Joined: Sat Jun 18, 2011 7:57 pm
Location: Lyon, France
Contact:

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

Post by Elwood »

Checked, confirmed and bug report filled, #8366
Philippe "Elwood" Ferrucci
Sam460 owner
AmigaOS 4 betatester
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 6:40 am
Location: France

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

Post 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
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 6:40 am
Location: France

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

Post by zzd10h »

With Locale.library 53.6, newly available,
my problem of date format is solved.

Thank you !
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
Post Reply