Modify

Opened 14 years ago

Closed 14 years ago

Last modified 9 years ago

#7588 closed defect (fixed)

SyntaxError: Non-ASCII character '\xc3' in file setup.py on line 8

Reported by: tatadeluxe@… Owned by: Martin Scharrer
Priority: normal Component: GoogleStaticMapMacro
Severity: normal Keywords: UTF-8
Cc: Trac Release: 0.12

Description (last modified by Ryan J Ollos)

Hi Martin:

Thanks for your help, but the change add an common error for non-english system. On line 8 of setup.py

__date__     = r"$Date$"[7:-2]

If i make:

svn checkout http://trac-hacks.org/svn/googlestaticmapmacro/0.11/ googlestaticmapmacro

I get on setup.py (1):

__date__     = r"$Date: 2010-08-28 12:22:35 -0400 (sáb 28 de ago de 2010) $"[7:-2]

Because in Spanish Saturday is Sábado.

To correct this problem I have to add on setup.py:

#!/usr/bin/env python 
# -*- coding: utf-8 -*-

Would be nice if you correct this internationalization problem declaring the encoding

Regars Javier

(1) http://www.python.org/peps/pep-0263.html for details

Attachments (0)

Change History (6)

comment:1 Changed 14 years ago by Martin Scharrer

Resolution: fixed
Status: newclosed

(In [8534]) googlestaticmapmacro/0.11/:: Added encoding meta-comment and turned date and revision into unicode strings to fix #7588.

comment:2 Changed 14 years ago by Martin Scharrer

Thanks for reporting this. I fixed it now by adding the requested encoding line and by turning the date into a unicode string.

However, this issue should also have occurred before the changes made for #7568.

comment:3 Changed 14 years ago by tatadeluxe@…

Wow That was too fast!! Now works like a charm.

Cheers

comment:4 Changed 14 years ago by anonymous

Keywords: UTF-8 added; utf8 removed

comment:5 Changed 9 years ago by Ryan J Ollos

Description: modified (diff)

comment:6 Changed 9 years ago by Ryan J Ollos

In 15550:

0.4: Add encoding statement to source files

Patch by ntmlod.

Refs #7588, #12776.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Martin Scharrer.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.