chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4fb2227
)
Possibly fix the encoding issues with odd locals.
author
daid
<daid303@gmail.com>
Tue, 2 Jul 2013 20:22:52 +0000
(22:22 +0200)
committer
daid
<daid303@gmail.com>
Tue, 2 Jul 2013 20:22:52 +0000
(22:22 +0200)
Cura/util/profile.py
patch
|
blob
|
history
diff --git
a/Cura/util/profile.py
b/Cura/util/profile.py
index b750be8fa49897686956eed3569800b0f8869c89..0fe27476acc057df021928a2895d6aa97433bf6e 100644
(file)
--- a/
Cura/util/profile.py
+++ b/
Cura/util/profile.py
@@
-678,11
+678,11
@@
def replaceTagMatch(m):
pre = m.group(1)
tag = m.group(2)
if tag == 'time':
pre = m.group(1)
tag = m.group(2)
if tag == 'time':
- return pre + time.strftime('%H:%M:%S').encode('
utf-8
', 'replace')
+ return pre + time.strftime('%H:%M:%S').encode('
ascii
', 'replace')
if tag == 'date':
if tag == 'date':
- return pre + time.strftime('%d %b %Y').encode('
utf-8
', 'replace')
+ return pre + time.strftime('%d %b %Y').encode('
ascii
', 'replace')
if tag == 'day':
if tag == 'day':
- return pre + time.strftime('%a').encode('
utf-8
', 'replace')
+ return pre + time.strftime('%a').encode('
ascii
', 'replace')
if tag == 'print_time':
return pre + '#P_TIME#'
if tag == 'filament_amount':
if tag == 'print_time':
return pre + '#P_TIME#'
if tag == 'filament_amount':