public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] localedata/tst-sscanf should use internal test locales
@ 2007-03-07 20:54 Steven Munroe
  2007-03-14 22:34 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Munroe @ 2007-03-07 20:54 UTC (permalink / raw)
  To: GNU libc hacker

[-- Attachment #1: Type: text/plain, Size: 267 bytes --]

The new test ./localedata/tst-sscanf.s attempts to set locale fa_IR.
this locale is not built internal to glibc for make check (fa_IR.UTF-8
is) and the LOCPATH is not set.

This patch sets tst-sscanf-ENV in the Makefile and changes tst-sscanf.c
to use fa_IR.UTF-8.



[-- Attachment #2: libc-tst-sscanf-20070307.txt --]
[-- Type: text/plain, Size: 1134 bytes --]

2007-03-07  Steven Munroe  <sjmunroe@us.ibm.com>

	* localedata/Makefile: Define tst-sscanf-ENV
	* localedata/tst-sscanf.c: Use fa_IR.UTF-8 which exists internally.

diff -urN libc25-cvstip-20070307/localedata/Makefile libc25/localedata/Makefile
--- libc25-cvstip-20070307/localedata/Makefile	2007-02-18 22:40:43.000000000 -0600
+++ libc25/localedata/Makefile	2007-03-07 14:28:56.630826704 -0600
@@ -289,6 +289,8 @@
 
 bug-iconv-trans-ENV = LOCPATH=$(common-objpfx)localedata
 
+tst-sscanf-ENV = LOCPATH=$(common-objpfx)localedata
+
 tst-leaks-ENV = MALLOC_TRACE=$(objpfx)tst-leaks.mtrace \
 		LOCPATH=$(common-objpfx)localedata
 $(objpfx)mtrace-tst-leaks: $(objpfx)tst-leaks.out
diff -urN libc25-cvstip-20070307/localedata/tst-sscanf.c libc25/localedata/tst-sscanf.c
--- libc25-cvstip-20070307/localedata/tst-sscanf.c	2007-02-18 22:40:13.000000000 -0600
+++ libc25/localedata/tst-sscanf.c	2007-03-07 14:29:13.047861688 -0600
@@ -36,7 +36,7 @@
 static int
 do_test (void)
 {
-  if (setlocale (LC_ALL, "fa_IR") == NULL)
+  if (setlocale (LC_ALL, "fa_IR.UTF-8") == NULL)
     {
       puts ("cannot set fa_IR locale");
       return 1;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] localedata/tst-sscanf should use internal test locales
  2007-03-07 20:54 [PATCH] localedata/tst-sscanf should use internal test locales Steven Munroe
@ 2007-03-14 22:34 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2007-03-14 22:34 UTC (permalink / raw)
  To: Steven Munroe; +Cc: GNU libc hacker

[-- Attachment #1: Type: text/plain, Size: 316 bytes --]

Steven Munroe wrote:
> This patch sets tst-sscanf-ENV in the Makefile and changes tst-sscanf.c
> to use fa_IR.UTF-8.

OK, but of course there was again a problem with the patch.  localedata
has it's own ChangeLog file.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-14 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-07 20:54 [PATCH] localedata/tst-sscanf should use internal test locales Steven Munroe
2007-03-14 22:34 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).