Module: wine
Branch: master
Commit: a37f74f5adec8cd3f924fc96e083a66219086091
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a37f74f5adec8cd3f924fc96e…
Author: Nicolas Le Cam <niko.lecam(a)gmail.com>
Date: Sat Apr 7 22:46:58 2012 +0200
configure.ac: Prefer pkg-config over freetype-config.
---
configure | 16 +++++++++++-----
configure.ac | 14 ++++++++++----
2 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/configure b/configure
index 3e6e777..5b0dcba 100755
--- a/configure
+++ b/configure
@@ -10262,7 +10262,12 @@ fi
if test "x$with_freetype" != "xno"
then
- for ac_prog in freetype-config freetype2-config
+ if test "$PKG_CONFIG" != "false"
+ then
+ ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
+ ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
+ else
+ for ac_prog in freetype-config freetype2-config
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -10305,10 +10310,11 @@ fi
done
test -n "$ft_devel" || ft_devel="no"
- if test "$ft_devel" != "no"
- then
- ac_freetype_incl=`$ft_devel --cflags`
- ac_freetype_libs=`$ft_devel --libs`
+ if test "$ft_devel" != "no"
+ then
+ ac_freetype_incl=`$ft_devel --cflags`
+ ac_freetype_libs=`$ft_devel --libs`
+ fi
fi
ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
diff --git a/configure.ac b/configure.ac
index 667d725..a57f133 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1384,11 +1384,17 @@ WINE_NOTICE_WITH(cms,[test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"],
dnl **** Check for FreeType 2 ****
if test "x$with_freetype" != "xno"
then
- AC_CHECK_PROGS(ft_devel,[freetype-config freetype2-config],no)
- if test "$ft_devel" != "no"
+ if test "$PKG_CONFIG" != "false"
then
- ac_freetype_incl=`$ft_devel --cflags`
- ac_freetype_libs=`$ft_devel --libs`
+ ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
+ ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
+ else
+ AC_CHECK_PROGS(ft_devel,[freetype-config freetype2-config],no)
+ if test "$ft_devel" != "no"
+ then
+ ac_freetype_incl=`$ft_devel --cflags`
+ ac_freetype_libs=`$ft_devel --libs`
+ fi
fi
ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
WINE_CHECK_SONAME(freetype,FT_Init_FreeType,[ft_lib=yes],[ft_lib=no],[$ac_freetype_libs])
Module: wine
Branch: master
Commit: 8abb0ffadd71f40a095a4cfc4e645268377342e6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8abb0ffadd71f40a095a4cfc4…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Mon Apr 9 02:40:46 2012 +0200
po: Remove duplicate spaces between sentences.
---
po/eo.po | 2 +-
po/es.po | 14 +++++++-------
po/pt_PT.po | 2 +-
po/sv.po | 12 ++++++------
po/uk.po | 6 +++---
5 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/po/eo.po b/po/eo.po
index 4b7b3ca..6ea87ed 100644
--- a/po/eo.po
+++ b/po/eo.po
@@ -8623,7 +8623,7 @@ msgstr "&Elira dosiernomo:"
#: winspool.rc:28
msgid "The output file already exists. Click OK to overwrite."
-msgstr "La elira dosiero jam ekzistas. Klaki sur 'Bone' por anstataŭi ĝin."
+msgstr "La elira dosiero jam ekzistas. Klaki sur 'Bone' por anstataŭi ĝin."
#: winspool.rc:29
msgid "Unable to create the output file."
diff --git a/po/es.po b/po/es.po
index a200fd3..157e963 100644
--- a/po/es.po
+++ b/po/es.po
@@ -7177,7 +7177,7 @@ msgid ""
"activate it using %s. It will be displayed as an icon."
msgstr ""
"Inserta el contenido del portapapeles en su documento de modo que pueda "
-"activarlo usando %s. Será mostrado como un icono."
+"activarlo usando %s. Será mostrado como un icono."
#: oledlg.rc:37
msgid ""
@@ -7185,7 +7185,7 @@ msgid ""
"linked to the source file so that changes to the file will be reflected in "
"your document."
msgstr ""
-"Inserta el contenido del portapapeles en su documento como %s. Los datos "
+"Inserta el contenido del portapapeles en su documento como %s. Los datos "
"estarán enlazados al archivo de origen, por lo que los cambios en el archivo "
"se reflejarán en su documento."
@@ -7195,9 +7195,9 @@ msgid ""
"is linked to the source file so that changes to the file will be reflected "
"in your document."
msgstr ""
-"Inserta una imagen del contenido del portapapeles en su documento. La "
-"imagen estará enlazada al archivo de origen, por lo que los cambios en el "
-"archivo se reflejarán en su documento."
+"Inserta una imagen del contenido del portapapeles en su documento. La imagen "
+"estará enlazada al archivo de origen, por lo que los cambios en el archivo "
+"se reflejarán en su documento."
#: oledlg.rc:39
msgid ""
@@ -7206,8 +7206,8 @@ msgid ""
"be reflected in your document."
msgstr ""
"Inserta un acceso directo que apunte a la localización del contenido del "
-"portapapeles. El acceso directo estará enlazado al archivo de origen, por "
-"lo que los cambios en el archivo se reflejarán en su documento."
+"portapapeles. El acceso directo estará enlazado al archivo de origen, por lo "
+"que los cambios en el archivo se reflejarán en su documento."
#: oledlg.rc:40
msgid "Inserts the contents of the clipboard into your document."
diff --git a/po/pt_PT.po b/po/pt_PT.po
index 2944e96..6af4073 100644
--- a/po/pt_PT.po
+++ b/po/pt_PT.po
@@ -8131,7 +8131,7 @@ msgstr ""
"\n"
"O Wine é distribuído na esperança que seja útil, mas SEM QUALQUER GARANTIA; "
"nem sequer a garantia implícita de MERCANTIBILIDADE ou FEITO PARA UM "
-"PROPÓSITO ESPECÍFICO. veja a GNU Lesser General Public License para mais "
+"PROPÓSITO ESPECÍFICO. veja a GNU Lesser General Public License para mais "
"detalhes.\n"
"\n"
"Deverá ter recebido uma cópia da GNU Lesser General Public License com o "
diff --git a/po/sv.po b/po/sv.po
index c74d60d..65fafe1 100644
--- a/po/sv.po
+++ b/po/sv.po
@@ -2162,9 +2162,9 @@ msgstr ""
"återkallade och betrodda certifikat.\n"
"\n"
"Ett certifikat kan användas för att identifiera dig eller datorn som du "
-"kommunicerar med. Det kan även användas för autentisering samt för att "
-"signera meddelanden. Certifikatlager är samlingar av certifikat, listor "
-"över återkallade certifikat, och listor över betrodda certifikat.\n"
+"kommunicerar med. Det kan även användas för autentisering samt för att "
+"signera meddelanden. Certifikatlager är samlingar av certifikat, listor över "
+"återkallade certifikat, och listor över betrodda certifikat.\n"
"\n"
"Klicka Nästa för att fortsätta."
@@ -2296,9 +2296,9 @@ msgstr ""
"återkallade och betrodda certifikat.\n"
"\n"
"Ett certifikat kan användas för att identifiera dig eller datorn som du "
-"kommunicerar med. Det kan även användas för autentisering samt för att "
-"signera meddelanden. Certifikatlager är samlingar av certifikat, listor "
-"över återkallade certifikat, och listor över betrodda certifikat.\n"
+"kommunicerar med. Det kan även användas för autentisering samt för att "
+"signera meddelanden. Certifikatlager är samlingar av certifikat, listor över "
+"återkallade certifikat, och listor över betrodda certifikat.\n"
"\n"
"Klicka Nästa för att fortsätta."
diff --git a/po/uk.po b/po/uk.po
index 6acf133..01e116b 100644
--- a/po/uk.po
+++ b/po/uk.po
@@ -2160,8 +2160,8 @@ msgstr ""
"сертифікатів.\n"
"\n"
"Сертифікат може бути використаний для вашої ідентифікації або ідентифікації "
-"комп'ютера, з яким ви з'єднані. Також він може бути використаний для "
-"завірення і для підписуваня повідомлень. Сховищами сертифікатів є колекції "
+"комп'ютера, з яким ви з'єднані. Також він може бути використаний для "
+"завірення і для підписуваня повідомлень. Сховищами сертифікатів є колекції "
"сертифікатів, списки анульованих сертифікатів та списки довірених "
"сертифікатів.\n"
"\n"
@@ -2302,7 +2302,7 @@ msgstr ""
"\n"
"Сертифікат може бути використаний для вашої ідентифікації або ідентифікації "
"комп'ютера, з яким ви з'єднані. Також він може бути використаний для "
-"завірення і для підписуваня повідомлень. Сховищами сертифікатів є колекції "
+"завірення і для підписуваня повідомлень. Сховищами сертифікатів є колекції "
"сертифікатів, списки анульованих сертифікатів та списки довірених "
"сертифікатів.\n"
"\n"
Module: wine
Branch: master
Commit: 7d7995c66cfac60d293fdfbb2b2942821d89c785
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7d7995c66cfac60d293fdfbb2…
Author: Bruno Jesus <00cpxxx(a)gmail.com>
Date: Sat Apr 7 19:45:04 2012 -0300
ws2_32/tests: Add hostent struct tests for gethostbyname.
---
dlls/ws2_32/tests/sock.c | 42 +++++++++++++++++++++++++++++++++++++++++-
1 files changed, 41 insertions(+), 1 deletions(-)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index cc045ea..53cf2c8 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -2730,10 +2730,50 @@ static void test_getsockname(void)
static void test_dns(void)
{
- struct hostent *h;
+ struct hostent *h, *he, host;
+ union memaddress
+ {
+ char *chr;
+ void *mem;
+ } addr;
+ char **ptr;
+ int acount;
+ void *ip_addr, *alias_addr;
h = gethostbyname("");
ok(h != NULL, "gethostbyname(\"\") failed with %d\n", h_errno);
+
+ if(h) host = *h;
+
+ /* Use an address with valid alias names if possible */
+ he = gethostbyname("source.winehq.org");
+ if(he)
+ h = he;
+ else if (h)
+ h = &host;
+ else
+ {
+ skip("Can't test the hostent structure because gethostbyname failed\n");
+ return;
+ }
+
+ /* The returned struct must be allocated in a very strict way. First we need to
+ * count how many aliases there are because they must be located right after
+ * the struct hostent size. Knowing the amount of aliases we know the exact
+ * location of the first IP returned. Rule valid for >= XP, for older OS's
+ * it's somewhat the opposite. */
+ for(ptr = h->h_aliases, acount = 1; *ptr; ptr++) acount++;
+
+ addr.mem = h + 1;
+ alias_addr = addr.mem;
+
+ todo_wine ok(h->h_aliases == alias_addr || broken(h->h_addr_list == alias_addr /* <= W2K */ ),
+ "hostent->h_aliases should be in %p, it is in %p\n", alias_addr, h->h_aliases);
+
+ addr.chr += sizeof(h->h_aliases) * acount;
+ ip_addr = addr.mem;
+ todo_wine ok(h->h_addr_list == ip_addr || broken(h->h_addr_list == alias_addr /* <= W2K */ ),
+ "hostent->h_addr_list should be in %p, it is in %p\n", ip_addr, h->h_addr_list);
}
/* Our winsock headers don't define gethostname because it conflicts with the