Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:AndnoVember:test
obapps
utf8_support.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File utf8_support.patch of Package obapps
*** obapps-0.1.7/obapps.orig 2010-07-09 09:38:23.000000000 +0400 --- obapps-0.1.7/obapps 2014-02-08 21:11:41.945064955 +0400 *************** *** 28,33 **** --- 28,34 ---- OTHER DEALINGS IN THE SOFTWARE. ''' + import codecs import obaxutils import wx import wx.lib.mixins.listctrl as mix *************** *** 378,384 **** def Save(self): try: ! f=open(self.path,'w') except IOError,ex: wx.MessageBox('Cannot save '+self.path+': '+str(ex),"OBApps",wx.OK|wx.ICON_ERROR) return --- 379,385 ---- def Save(self): try: ! f=codecs.open(self.path,'w','utf_8') except IOError,ex: wx.MessageBox('Cannot save '+self.path+': '+str(ex),"OBApps",wx.OK|wx.ICON_ERROR) return *************** *** 417,423 **** wx.Frame.__init__(self,*args,**kwargs) vbox=wx.BoxSizer(wx.VERTICAL) hbox=wx.BoxSizer(wx.HORIZONTAL) ! appsel=OBappsel(self,-1,style=wx.BORDER_RAISED,showtitle=False) hbox.Add(appsel,1,wx.EXPAND) panel=SettingsPanel(self,-1) hbox.Add(panel,0,wx.EXPAND) --- 418,424 ---- wx.Frame.__init__(self,*args,**kwargs) vbox=wx.BoxSizer(wx.VERTICAL) hbox=wx.BoxSizer(wx.HORIZONTAL) ! appsel=OBappsel(self,-1,style=wx.BORDER_RAISED,showtitle=True) hbox.Add(appsel,1,wx.EXPAND) panel=SettingsPanel(self,-1) hbox.Add(panel,0,wx.EXPAND) *************** *** 441,447 **** self.Close() return try: ! f=open(path,'r') except IOError,ex: print ('Cannot load '+path+': '+str(ex)) self.Close() --- 442,448 ---- self.Close() return try: ! f=codecs.open(path,'r') except IOError,ex: print ('Cannot load '+path+': '+str(ex)) self.Close()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor