Re: regcomp() signedness issues

Mouse <[email protected]> Sat, 28 Dec 2024 20:46:47 -0500 (EST)
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
>> 00000000: 6a3a 5b5d 6a3a 5b5d 6a3a 5bd9 6a3a 5b5d  j:[]j:[]j:[.j:[]

> I can't reproduce this in current:

> 	if ((e = regcomp(&re, "j:[]j:[]j:[.j:[]", REG_EXTENDED)) != 0) {

> What am I doing wrong?

Based on the Subject:, perhaps you're using a machine where plain char
has opposite signedness from the one where the issue was observed?

I don't see why signedness would matter for that RE, but the original
mail seems to have not made it to me, so there may be something
relevant there I didn't see.  Also, I didn't see anything in the quote
indicating what flag bits (third arg to regcomp()) are appropriate;
REG_EXTENDED may not be right.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		[email protected]
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B