[Osgeo4w-trac] Re: [osgeo4w] #270: apt unicode error (was: apt unicode error on Windows XP)

OSGeo4W trac_osgeo4w at osgeo.org
Tue Feb 21 18:08:32 EST 2012


#270: apt unicode error
---------------------+------------------------------------------------------
Reporter:  alexbruy  |       Owner:  maphew     
    Type:  defect    |      Status:  assigned   
Priority:  major     |   Component:  Package    
 Version:            |    Keywords:  apt unicode
---------------------+------------------------------------------------------
Changes (by maphew):

  * keywords:  apt => apt unicode


Comment:

 I did some research on how to handle unicode in python and everything I
 found is way over my head. I'm afraid apt will have to classified as
 working on ansi systems only for the time being. (patches to change this
 gratefully accepted).

 A workaround would be to edit `bin\apt-dev.py` and change:

 {{{
 ## insert at line 2:
 # coding: utf-8
 }}}

 {{{
 ## line 991 from:
 OSGEO4W_STARTMENU = get_special_folder(ALLUSERSPROGRAMS) + "\\" +
 start_menu_name
 # to:
 OSGEO4W_STARTMENU = r'C:\Documents and Settings\All Users\Главное
 меню\Программы'
 # or to skip menu links altogether:
 OSGEO4W_STARTMENU = os.getenv('TEMP')
 }}}

 (and then run `apt-dev` instead of `apt` of course.)

-- 
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/270#comment:5>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the Osgeo4w-trac mailing list