View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003037 | Scribus | Scripter | public | 2006-01-21 00:33 | 2006-01-22 22:47 |
Reporter | alexandre | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | GNU/Linux | OS Version | Ubuntu Dapper | ||
Product Version | 1.3.2cvs | ||||
Summary | 0003037: utf code instead of letters in scripts console | ||||
Description | Running "Run as console" in Scripter console, when some text contains cyrillic characters outputs UTF code, not characters. Screenshot is attached. | ||||
Steps To Reproduce | 1. Open Scripter console 2. Run 'Run As Console' (F2) | ||||
Tags | No tags attached. | ||||
Patch | |||||
child of | 0003813 | acknowledged | Metabug: Scripter |
2006-01-21 00:33
|
|
|
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. |
|
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
|
|
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\\xd0\\xb0\\xd0\\xbb\\xd1\\x8c\\xd0\\xbd\\xd0\\xbe \\xd1\\x83\\xd1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\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.' >>> |
|
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). |
|
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. |
|
Done. Sorry for the spam. |
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 |
|
Note Added: 0008207 | |
2006-01-21 03:45 |
|
Status | assigned => resolved |
2006-01-21 03:45 |
|
Resolution | open => no change required |
2006-01-21 03:46 |
|
Note Added: 0008208 | |
2006-01-21 03:49 |
|
File Added: repr_vs_print.png | |
2006-01-21 03:52 |
|
File Added: console.txt | |
2006-01-21 03:53 |
|
Note Added: 0008210 | |
2006-01-21 09:16 | cbradney | Note Added: 0008211 | |
2006-01-21 20:18 |
|
Status | resolved => assigned |
2006-01-21 20:18 |
|
Assigned To | subik => ringerc |
2006-01-21 20:18 |
|
Status | assigned => resolved |
2006-01-21 20:18 |
|
Resolution | no change required => fixed |
2006-01-21 20:19 |
|
Note Added: 0008225 | |
2006-01-21 20:19 |
|
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 |