View Issue Details

IDProjectCategoryView StatusLast Update
0003037ScribusScripterpublic2006-01-22 22:47
Reporteralexandre Assigned Toringerc 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformGNU/LinuxOS VersionUbuntu Dapper 
Product Version1.3.2cvs 
Summary0003037: utf code instead of letters in scripts console
DescriptionRunning "Run as console" in Scripter console, when some text contains cyrillic characters outputs UTF code, not characters. Screenshot is attached.
Steps To Reproduce1. Open Scripter console
2. Run 'Run As Console' (F2)
TagsNo tags attached.
Patch

Relationships

child of 0003813 acknowledged Metabug: Scripter 

Activities

2006-01-21 00:33

 

ScriptsConsole.png (25,485 bytes)   
ScriptsConsole.png (25,485 bytes)   

ringerc

2006-01-21 03:45

reporter   ~0008207

Console output is being produced with repr() not print() . This is normal and consistent with the real Python interactive interpreter. If you want to see it unescaped, use the print command.

Not a bug.

ringerc

2006-01-21 03:46

reporter   ~0008208

Ah, just noticed cbradney reassigned this to you subik. If you're ok with the above just lob it back my way, otherwise do whatever you think is appropriate.

2006-01-21 03:49

 

repr_vs_print.png (20,053 bytes)   
repr_vs_print.png (20,053 bytes)   

2006-01-21 03:52

 

console.txt (2,465 bytes)   
[craig@albert ~]$ python
Python 2.4.1 (#1, May 16 2005, 15:19:29)
[GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> x = """Python-консоль Scribus
...
... Это функционально урезанная в части пробелов версия Python-консоли. Подробности изложены в документации к Scribus."""
>>> print x
Python-консоль Scribus

Это функционально урезанная в части пробелов версия Python-консоли. Подробности изложены в документации к Scribus.
>>> repr(x)
"'Python-\\xd0\\xba\\xd0\\xbe\\xd0\\xbd\\xd1\\x81\\xd0\\xbe\\xd0\\xbb\\xd1\\x8c Scribus\\n\\n\\xd0\\xad\\xd1\\x82\\xd0\\xbe \\xd1\\x84\\xd1\\x83\\xd0\\xbd\\xd0\\xba\\xd1\\x86\\xd0\\xb8\\xd0\\xbe\\xd0\\xbd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xb0\xd1\x81\xd1\x82\xd0\xb8 \xd0\xbf\xd1\x80\xd0\xbe\xd0\xb1\xd0\xb5\xd0\xbb\xd0\xbe\xd0\xb2 \xd0\xb2\xd0\xb5\xd1\x80\xd1\x81\xd0\xb8\xd1\x8f Python-\xd0\xba\xd0\xbe\xd0\xbd\xd1\x81\xd0\xbe\xd0\xbb\xd0\xb8. \xd0\x9f\xd0\xbe\xd0\xb4\xd1\x80\xd0\xbe\xd0\xb1\xd0\xbd\xd0\xbe\xd1\x81\xd1\x82\xd0\xb8 \xd0\xb8\xd0\xb7\xd0\xbb\xd0\xbe\xd0\xb6\xd0\xb5\xd0\xbd\xd1\x8b \xd0\xb2 \xd0\xb4\xd0\xbe\xd0\xba\xd1\x83\xd0\xbc\xd0\xb5\xd0\xbd\xd1\x82\xd0\xb0\xd1\x86\xd0\xb8\xd0\xb8 \xd0\xba Scribus.'
>>>
console.txt (2,465 bytes)   

ringerc

2006-01-21 03:53

reporter   ~0008210

The attached text file is utf8, showing the Python interactive interpreter's behaviour. Deleted a previous note with the same contents because Mantis mangled it unrecognisably (incorrect HTML entity escaping, line breaks, etc).

cbradney

2006-01-21 09:16

administrator   ~0008211

I only assigned it to subik due to the fact I know your busy.. either of you can sort it out.. if it was a problem.

ringerc

2006-01-21 20:19

reporter   ~0008225

Done.

Sorry for the spam.

Issue History

Date Modified Username Field Change
2006-01-21 00:33 alexandre New Issue
2006-01-21 00:33 alexandre File Added: ScriptsConsole.png
2006-01-21 00:34 cbradney Status new => assigned
2006-01-21 00:34 cbradney Assigned To => ringerc
2006-01-21 00:35 cbradney Assigned To ringerc => subik
2006-01-21 03:45 ringerc Note Added: 0008207
2006-01-21 03:45 ringerc Status assigned => resolved
2006-01-21 03:45 ringerc Resolution open => no change required
2006-01-21 03:46 ringerc Note Added: 0008208
2006-01-21 03:49 ringerc File Added: repr_vs_print.png
2006-01-21 03:52 ringerc File Added: console.txt
2006-01-21 03:53 ringerc Note Added: 0008210
2006-01-21 09:16 cbradney Note Added: 0008211
2006-01-21 20:18 ringerc Status resolved => assigned
2006-01-21 20:18 ringerc Assigned To subik => ringerc
2006-01-21 20:18 ringerc Status assigned => resolved
2006-01-21 20:18 ringerc Resolution no change required => fixed
2006-01-21 20:19 ringerc Note Added: 0008225
2006-01-21 20:19 ringerc Resolution fixed => no change required
2006-01-22 22:47 cbradney Status resolved => closed
2006-05-13 21:14 christoph_s Relationship added child of 0003813