[wingide-users] Mercurial and UTF-8
Adi J. Sieker
adi at sieker.info
Fri Mar 25 15:06:22 MDT 2011
Hi,
just for Info. I raised a bug a while back about Wing reporting that my
mercurial commits fail although they actually suceed. Since that also
might have something todo with it. Here is what my Wing interpreter and
the standard interpreter return.
adi at mini:~$ /usr/lib/wingide4.0/bin/PyCore/python
Could not find platform independent libraries<prefix>
Consider setting $PYTHONHOME to<prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Python 2.5.5 (r255:77872, Dec 8 2010, 14:40:32)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.getfilesystemencoding()
>>> sys.getdefaultencoding()
'ascii'
>>>
adi at mini:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.getfilesystemencoding()
'UTF-8'
>>> sys.getdefaultencoding()
'ascii'
>>>
Regards
Adi
On 25/03/11 21:07, Wingware Support wrote:
> On 3/25/11 3:20 PM, Harald Thingelstad wrote:
>> I have recently bought Wingide and it's great (of course) but I have a
>> few problems.
>>
>> First to go is my trouble with Mercurial integration and international
>> characters. (I thought I saw a tip on how to improve the Vim keyboard
>> personality somewhere so I'll leave that for later.)
>>
>> I use Mercurial as favorite for my small projects. But trying to write
>> commit messages in Wingide gives me trouble with the
>> (for me) common letters æ, ø and å.
>>
>> Commits ends up failing with messages like these:
>> base.py
>> transaction abort!
>> rollback completed
>> abort: decoding near 'bort lus. æøå': 'ascii' codec can't decode byte
>> 0xc3 in position 15: ordinal not in range(128)!
>
> What is the output if you type the following if you type it in Wing's
> private Python interpreter (which should be
> /usr/lib/wingide4.0/bin/PyCore/python in your case, I think)?
>
> sys.getfilesystemencoding()
> sys.getdefaultencoding()
>
> Thanks,
>
--
Adi J. Sieker
Steurentalstr. 2
79252 Stegen
mobile: +49 / 178 / 88 5 88 13
tel: +49 / 7661 / 91 92 813
web: http://www.sieker.info/profile
More information about the wingide-users
mailing list