fix for #118744. r=racham, sr=sspitzer. outlook express addresses

not displayed correctly in non US-ASCII locales.
thanks to john.marmion@ireland.sun.com for the patch.
This commit is contained in:
sspitzer%netscape.com 2002-01-24 04:17:47 +00:00
Родитель 4c976f513f
Коммит 999fe2623d
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -210,12 +210,12 @@ nsresult nsAbOutlookCard::Init(const char *aUri)
nsAutoString unichar ; nsAutoString unichar ;
nsAutoString unicharBis ; nsAutoString unicharBis ;
if (mapiAddBook->GetPropertyUString(*mMapiData, PR_HOME_ADDRESS_STREET, unichar)) { if (mapiAddBook->GetPropertyUString(*mMapiData, PR_HOME_ADDRESS_STREET_W, unichar)) {
splitString(unichar, unicharBis) ; splitString(unichar, unicharBis) ;
SetHomeAddress(unichar.get()) ; SetHomeAddress(unichar.get()) ;
SetHomeAddress2(unicharBis.get()) ; SetHomeAddress2(unicharBis.get()) ;
} }
if (mapiAddBook->GetPropertyUString(*mMapiData, PR_BUSINESS_ADDRESS_STREET, unichar)) { if (mapiAddBook->GetPropertyUString(*mMapiData, PR_BUSINESS_ADDRESS_STREET_W, unichar)) {
splitString(unichar, unicharBis) ; splitString(unichar, unicharBis) ;
SetWorkAddress(unichar.get()) ; SetWorkAddress(unichar.get()) ;
SetWorkAddress2(unicharBis.get()) ; SetWorkAddress2(unicharBis.get()) ;