[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
porting code
From: |
Steven Abner |
Subject: |
porting code |
Date: |
Thu, 9 Jun 2011 16:52:42 -0400 |
Hi
I was just turned on to your library from another developer group in reference
to testing. It was great! Normally I spend hours, sometimes giving up, on
trying to
get glibc code. Took me about 10 mins to start using your code!
Well, as said I use for testing. I wish to know how to link in the current
system locale data
into your strftime() code. I am on a Mac, 10.6.somethin'. I can't use %a, %b
etc, to test against
my code. Just using simple C locale data. Including "locale.h" and defining
NL_CURRENT didn't
help.
As a bonus, ha, I will tell you to try any Year Week Weekday combo on your
strptime() function.
You might be lucky. Next try "memset(&tm, '\245', sizeof(struct tm))" just be
parsing the combo.
Hope you know a way to link in system locale, or just have simple port of "C"
locale.
Thanks again. Found strftime() helpful even in its current state. Wish I
couldda used ptime.
Steve
- porting code,
Steven Abner <=