Updated GRAMPS shell script to build LD_PRELOAD variable correctly

svn: r1100
This commit is contained in:
Don Allingham
2002-07-27 13:54:56 +00:00
parent 4bb7d8cef6
commit 6df1ab1608
3 changed files with 39 additions and 5 deletions

View File

@@ -114,7 +114,7 @@ SUBDIRS = docgen filters plugins data po
# For intl. support, how do we compile?
CFLAGS = -fPIC -shared -O @CFLAGS@ @CPPFLAGS@ -I@includedir@
LDFLAGS = @LDFLAGS@ -L@libdir@ @LIBS@
LDFLAGS = @LDFLAGS@ -L@libdir@ @LIBS@
CLEANFILES = ${INTLLIBS}
MOSTLYCLEANFILES =

View File

@@ -22,7 +22,7 @@ import sys
if sys.version[0] != '1':
def utf8_to_latin(s):
return s.encode('latin-1')
return s.encode('latin-1','replace')
def latin_to_utf8(s):
return s
@@ -37,7 +37,7 @@ else:
def utf8_to_latin(s):
y = UTF8String(s)
try:
return y.encode("iso-8859-1")
return y.encode("iso-8859-1",'replace')
except:
return s