Thread strftime stuerzt ab (17 answers)
Opened by betterworld at 2008-04-22 03:58

murphy
 2008-04-22 23:45
#108761 #108761
User since
2004-07-19
1776 Artikel
HausmeisterIn
[Homepage]
user image
KurtZ+2008-04-22 19:41:14--
[...]
Soweit ich die Doku verstehe sollte aber bei deutschem locale weder %p noch "AM/PM" wie bei Murphy sondern Leerzeichen/Leerstring ausgegeben werden.
[...]


Nein, ich denke da hat die C-Bibliothek ziemlich viel Implementationsspielraum. In der Dokumentation zu CPAN:POSIX steht denn auch "[...] But even then, the results of some of the conversion specifiers are non-portable. For example, the specifiers "aAbBcpZ" change according to the locale settings of the user, and both how to set locales (the locale names) and what output to expect are non-standard. [...]".

Und meine Systemmanpage zu strftime sagt "[...] %p is replaced by national representation of either "ante meridiem" or "post meridiem" as appropriate. [...]", was für mich heißt, dass da immer etwas herauskommt.
When C++ is your hammer, every problem looks like your thumb.

View full thread strftime stuerzt ab