logo       

const qualifier violation in regex.c:re_comp(): msg#00000

Subject: const qualifier violation in regex.c:re_comp()
Greetings,

The attached bug report was sent to bug-cvs@xxxxxxx, but really applies
to the :ext:anoncvs@xxxxxxxxxxxxxxxx/cvsroot/gnulib repository
gnulib/lib/regex.c file.

        -- Mark

ChangeLog entry:

        * regex.c (re_comp): Use gettext_noop for constant strings.

Index: regex.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/regex.c,v
retrieving revision 1.81
diff -u -p -u -p -r1.81 regex.c
--- regex.c     17 May 2004 05:41:42 -0000      1.81
+++ regex.c     4 Oct 2004 05:36:27 -0000
@@ -7906,7 +7906,7 @@ re_comp (const char *s)
   if (!s)
     {
       if (!re_comp_buf.buffer)
-       return gettext ("No previous regular expression");
+       return gettext_noop ("No previous regular expression");
       return 0;
     }
 

------- Forwarded Message -------

| Date: Fri, 1 Oct 2004 19:51:00 +0200 (CEST)
| From: Martin Neitzel <neitzel@xxxxxxxxxxxxxxx>
| Message-Id: <200410011751.i91Hox4s020478@xxxxxxxxxxxxxxx>
| To: bug-cvs@xxxxxxx
| Subject: const qualifier violation in regex.c:re_comp()
| 
| 
| >Submitter-Id:   net
| >Originator:   Martin Neitzel
| >Organization:        Gaertner Datensysteme
| >Confidential:  no
| >Synopsis:    const qualifier violation in regex.c:re_comp()
| >Severity:    non-critical
| >Priority:    low
| >Category:    cvs
| >Class:               sw-bug
| >Release:     1.12.9.1
| >Environment:
|       IRIX sco 5.3 11091810 IP12 mips
|       (Probably any ANSI C build environment.)
| 
| >Description:
|       lib/regex.c has a botched const char* (un)qualification.
| 
| >How-To-Repeat:
|       Compile with all warnings taken seriously.
| 
| >Fix:
| 
| Index: lib/regex.c
| ===================================================================
| RCS file: /cvs/ccvs/lib/regex.c,v
| retrieving revision 1.14
| diff -u -r1.14 regex.c
| --- lib/regex.c       8 Apr 2004 01:35:59 -0000       1.14
| +++ lib/regex.c       1 Oct 2004 14:06:46 -0000
| @@ -7912,7 +7912,7 @@
|    if (!s)
|      {
|        if (!re_comp_buf.buffer)
| -     return gettext ("No previous regular expression");
| +     return gettext_noop ("No previous regular expression");
|        return 0;
|      }

------- End of Forwarded Message -------


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe