mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 18:25:11 -06:00
[utilities] warn against using guile's strftime
strftime has been banished from code; warning for custom-reports https://www.mail-archive.com/bug-guile@gnu.org/msg09778.html
This commit is contained in:
parent
72974d7a13
commit
039b84871e
@ -155,3 +155,13 @@
|
||||
(string-replace-substring
|
||||
s1 s2 s3 0 (string-length s1) (max 0 (1- start))
|
||||
(and (positive? end-after) (+ (max 0 (1- start)) (1- end-after)))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; avoid using strftime, still broken in guile-2.2. see explanation at
|
||||
;; https://www.mail-archive.com/bug-guile@gnu.org/msg09778.html
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
(let ((strftime-old strftime))
|
||||
(set! strftime
|
||||
(lambda args
|
||||
(gnc:warn "strftime may be buggy. use gnc-print-time64 instead.")
|
||||
(apply strftime-old args))))
|
||||
|
Loading…
Reference in New Issue
Block a user