[issue9811] strftime strips '%' from unknown format codes on OS X

2021-10-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b1873d1e24ed5ef39f37ca3090c2f0c2b34ce23f by Pablo Galindo (Miss Islington (bot)) in branch '3.10': bpo-9811: [doc] strftime handling of unsupported format specifiers is platform dependent (GH-28264) (GH-28277) https://github.com/python/c

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-10 Thread Irit Katriel
Irit Katriel added the comment: No, I think we're good. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-10 Thread Łukasz Langa
Łukasz Langa added the comment: Is there anything else you wanted to do here, Irit? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-10 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset baeaaecb8a97033bc2d07d51442cc8b1f89d410d by Miss Islington (bot) in branch '3.9': bpo-9811: [doc] strftime handling of unsupported format specifiers is platform dependent (GH-28264) (GH-28278) https://github.com/python/cpython/commit/baeaaecb8a970

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 897e5aae748180acf8d546d14aeacaf02600fff9 by Miss Islington (bot) in branch '3.10': bpo-9811: [doc] strftime handling of unsupported format specifiers is platform dependent (GH-28264) (GH-28277) https://github.com/python/cpython/commit/897e5aae7481

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 10.0 -> 11.0 pull_requests: +26695 pull_request: https://github.com/python/cpython/pull/28277 ___ Python tracker

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e86bcfa58080f152f242c756f625f4015671f168 by Irit Katriel in branch 'main': bpo-9811: [doc] strftime handling of unsupported format specifiers is platform dependent (GH-28264) https://github.com/python/cpython/commit/e86bcfa58080f152f242c756f625f40

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +26696 pull_request: https://github.com/python/cpython/pull/28278 ___ Python tracker ___ ___

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-09 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ _

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: This issue was created 11 years ago today. Let's celebrate its anniversary by resolving it! -- ___ Python tracker ___ _

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-09 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 8.0 -> 9.0 pull_requests: +26684 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28264 ___ Python tracker __

[issue9811] strftime strips '%' from unknown format codes on OS X

2011-05-18 Thread Santoso Wijaya
Santoso Wijaya added the comment: Yeah, I meant undefined. I looked that up when writing a patch for issue #10762. Correction: It *used to* crash on Windows, before the patch was applied. -- ___ Python tracker ___

[issue9811] strftime strips '%' from unknown format codes on OS X

2011-05-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Santoso Wijaya wrote: > > Santoso Wijaya added the comment: > > `strftime` does not, indeed, seem to define what behaviour it is supposed to > do when given non-supported format characters. Under Windows, in fact, it > will crash the runtime (see: issue

[issue9811] strftime strips '%' from unknown format codes on OS X

2011-05-17 Thread Santoso Wijaya
Santoso Wijaya added the comment: `strftime` does not, indeed, seem to define what behaviour it is supposed to do when given non-supported format characters. Under Windows, in fact, it will crash the runtime (see: issue #10762). -- nosy: +santa4nt

[issue9811] strftime strips '%' from unknown format codes on OS X

2011-05-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure if Apple's tracking FreeBSD, but they at the very least heavily borrow code (see for libc) -- ___ Python tracker

[issue9811] strftime strips '%' from unknown format codes on OS X

2011-05-17 Thread R. David Murray
R. David Murray added the comment: Right, that's why I said "if it is a bug" :) FreeBSD has the same behavior, so I'd actually prefer that Apple not "fix" this. It would be nice if FreeBSD did and Apple adopted it, though, since only dropping the % is the least intuitive approach to handling

[issue9811] strftime strips '%' from unknown format codes on OS X

2011-05-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've filed #9451707 about this in Apple's bug tracker. BTW. I don't think this is a platform bug, neither the manpage nor the unix specification at specify what happens when you use an undoc

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-11 Thread Éric Araujo
Éric Araujo added the comment: Ah, I understand your first reply now. Thanks. Agreed on all your points. -- ___ Python tracker ___ _

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-11 Thread R. David Murray
R. David Murray added the comment: But if it is a bug, it is a bug in OS/X, not in Python. Python could potentially fix it for python programs by providing our own strftime, but until someone does that the best we can do is a doc mention of this platform quirk. -- __

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-11 Thread Éric Araujo
Éric Araujo added the comment: I think supporting different specifiers is one thing, dropping the % character is another. This is how I understand the bug report. -- nosy: +eric.araujo ___ Python tracker

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I think there have been some rumblings about writing our own strftime Yes, see issue #3173. Another related issue is #9650 which discusses how to properly document strftime codes. -- ___ Python tracker

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread R. David Murray
R. David Murray added the comment: Python's strftime is a thin wrapper around the system strftime. This means, for example, that a slightly different set of % codes is supported on windows vs linux. So, from Python's point of view this is at *most* a doc bug. That said, I think there have b

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread Sverre Johansen
Sverre Johansen added the comment: This is because of differences in GNU and BSD C stdlib; I get the same results using the BSD and GNU versions of `date`. $ date +"%q" What does Python typically do in cases like this? -- ___ Python tracker <

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread Sverre Johansen
New submission from Sverre Johansen : There seems to be a platform difference in the way stftime handles unknown format codes. In OSX Python removes the percentage sign from the returned string when the format code is unknown. In Linux it leaves it. Look at the following example: This is Pyt