Displaying 20 results from an estimated 500 matches similar to: "Question about regexp edge case"
2024 Aug 01
1
Question about regexp edge case
Thanks Tomas. Do note that my original post also mentioned a bug or doc
error in the PCRE docs for this regexp:
> - perl = TRUE does *not* give the documented result on at least one
> system (which is "123456789", because "{,5}" is documented to not be a
> quantifier, so it should only match the literal string "{,5}").
Duncan
On 2024-08-01 6:49 a.m.,
2024 Aug 09
1
Question about regexp edge case
On 8/1/24 20:55, Duncan Murdoch wrote:
> Thanks Tomas.? Do note that my original post also mentioned a bug or
> doc error in the PCRE docs for this regexp:
>
>> ? - perl = TRUE does *not* give the documented result on at least one
>> system (which is "123456789", because "{,5}" is documented to not be
>> a quantifier, so it should only match the
2007 Jun 24
2
problem gsub in the locale of CP932 and SJIS (PR#9751)
Full_Name: Ei-ji Nakama
Version: R-2.5.0
OS: any
Submission from: (NULL) (219.117.236.5)
problem by operation of gsub in the locale of CP932 and SJIS.
The inconvenient character code which used 0x5c after the first byte.
--- R-2.5.0.orig/src/main/character.c 2007-04-03 11:05:05.000000000 +0900
+++ R-2.5.0/src/main/character.c 2007-06-24 22:31:06.000000000 +0900
@@ -986,6 +986,17 @@
2000 Feb 07
4
Segmentation fault, devPS.c, 0.99.0 (PR#413)
Full_Name: Roger Bivand
Version: 0.99.0
OS: RH Linux 6.1
Submission from: (NULL) (158.37.60.152)
I am working on an interface between R and the GRASS geographical information
system,
written in R, with no dynamically loaded code. I have written full examples, and
tested
then under R 0.90.1, both by entering example() for each function and R CMD
check, both
of which worked without problem.
Under
2009 Aug 30
0
[LLVMdev] Regular Expression lib support
On Aug 28, 2009, at 1:53 AM, Daniel Dunbar wrote:
> Nice!
>
> This looks good to me but probably Chris or someone else should sign
> off on it.
This seems ok to me, please commit. One minor comment:
+++ b/lib/Support/Regex.cpp
+ // Allocate pmatch with at least one element.
+ pmatch = new llvm_regmatch_t[nmatch > 0 ? nmatch : 1];
+ pmatch[0].rm_so = 0;
+ pmatch[0].rm_eo =
2012 Jan 09
1
[PATCH] xenstat: Correct copy of network device name
When xenstat library parse /proc/net/dev, it uses strpbrk function to get pointer
to device name. However, it miss capital letters in the array of valid characters
so it get incorrect name in case device name starts with capital letters or even
segfault if it contains only capital letters.
This patch adds missing characters to strpbrk call.
Signed-off-by: Miroslav Rezanina
2009 Aug 28
3
[LLVMdev] Regular Expression lib support
Nice!
This looks good to me but probably Chris or someone else should sign off on it.
There were two minor warnings on Darwin:
--
In file included from /Volumes/Data/Users/ddunbar/llvm/lib/Support/regexec.c:81:
/Volumes/Data/Users/ddunbar/llvm/lib/Support/regengine.inc: In
function 'sbackref':
/Volumes/Data/Users/ddunbar/llvm/lib/Support/regengine.inc:665:
warning: control reaches end of
2015 Dec 31
4
R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!"
On 2015-12-30 09:58, Michael Felt wrote:
> On 2015-12-29 11:02, Michael Felt wrote:
>> This seems to be a problem that goes back a long time - and I hope
>> someone who understands what tre is suppossed to be doing will look
>> at this.
>>
>> A short history of other people who have reported on this on
>> different versions of AIX. I shall only add that I
2016 Jan 01
2
R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!"
Ok, found the problem - on platforms that support it TRE uses wint_t (from wchar.h) as its type for characters (tre_cint_t) which on AIX is *signed* int. TRE uses liberally conversions between int and tre_cint_t apparently assuming that the latter is unsigned so conversions back to int are suitable for comparisons etc. On other platforms wint_t is unsigned so it works. Manually defining tre_cint_t
2016 Jan 03
4
R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!"
On 2016-01-01 23:48, peter dalgaard wrote:
> Nice catch you two!!!
>
> Happy New Year
> -pd
I am much happier with this great start!
Simon - which compiler)s) did you use: xlc and xlfortran, or gcc/gfortran?
I have made some changes to configure(.ac) so maybe my problems are
self-inflicted. But would be good to know what environment you are using.
Thanks for looking - and
2015 Dec 29
2
R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!"
This seems to be a problem that goes back a long time - and I hope
someone who understands what tre is suppossed to be doing will look at this.
A short history of other people who have reported on this on different
versions of AIX. I shall only add that I get the same results on AIX 5.3
TL7, AIX 6.1 TL9 and AIX 7.1 TL3.
Basically, with settings that work for AIX and 32-bit - the only changes
2016 Jan 04
4
R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!"
I would be "pleased" if you would try packages - i.e., none of "Toolbox"
or Perzl rpm's.
The iconv I supply might not be working as is (I will need to install a
new system to check). However, this is why I have been testing with
R-3.2.3 - to side-step the system library dependencies.
re: xz - I have "installp" version - and any of my packages should work
2002 May 08
0
embedded R regexec returning nonsense
Under RSPython and rpy, the regexec C function is returning nonsensical
results leading to segmentation faults. This is happening in some
situations under R 1.4.1 and (more often?) under R 1.5.0 on my Solaris 8
box. R 1.4.1 was compiled with gcc 2.95.2, and I've tried 1.5.0 with both
gcc 2.95.2 and gcc 3.0.3. The error appears to be exactly the same under
both python tools and both
2015 Dec 17
3
Assistance much appreciated
On 2015-12-17 19:30, peter dalgaard wrote:
> Presumably the file in question is one of
>
> Peter-Dalgaards-MacBook-Air:BUILD pd$ grep -r "^Package: tools" *
> library/tools/DESCRIPTION:Package: tools
> src/library/tools/DESCRIPTION:Package: tools
>
> so the first thing I'd do is to have a good look at those files and see if they got somehow corrupted.
>
>
1997 Jun 09
1
R-beta: compiling R under HP-UX
Hi,
I've trouble compiling R-0.49 (with both patches applied) on a
HP-UX sim B.10.20 A 9000/819 machine:
ranlib ../lib/libappl.a
cd regex; make
c89 -Ae -g -I../include -DPOSIX_MISTAKE -c regcomp.c
cc: warning 422: Unknown option "-Ae" ignored.
cc: "../include/regex.h", line 50: error 1000: Unexpected symbol: "regoff_t".
cc:
2009 Aug 30
1
[LLVMdev] Regular Expression lib support
On 2009-08-30 03:55, Chris Lattner wrote:
>
> On Aug 28, 2009, at 1:53 AM, Daniel Dunbar wrote:
>
>> Nice!
>>
>> This looks good to me but probably Chris or someone else should sign
>> off on it.
>
> This seems ok to me, please commit. One minor comment:
Committed.
It would be useful if someone could test if this works on Windows, the
msvc buildbot was all
2005 Dec 30
5
HABTM with finder_sql problem (Rails bug?)
I''m building an app that needs i18n support across the entire database
(i.e. localized attributes). In order to do this I''ve created a
special HABTM join table that can be associated with _any_ other
table:
create table language_strings (
for_table varchar(255) not null,
foreign_id int not null,
language_id varchar(5) not null,
attr_name varchar(255) not null,
value text
2005 Aug 17
4
LDAP suffixes
need clarification of the use of:
ldap suffix
ldap machine suffix
ldap user suffix
ldap idmap suffix
smb.conf.5 indicates you should have a fully qualified suffix such as:
ldap suffix = dc=blah,dc=com
ldap machine suffix = ou=People,dc=blah,dc=com
ldap user suffix = ou=People,dc=blah,dc=com
ldap group suffix = ou=Groups,dc=blah,dc=com
ldap idmap suffix = ou=Idmap,dc=blah,dc=dom
2012 May 19
1
Catenating strings involving plotmath symbols.
In the context in which I am actually working it is necessary for
me to build parts of a text string to place on a plot in two separate
stages.
The following toy example illustrates what I am trying to do:
L1 <- substitute(list(paste("Bias in ", gamma,", ")))
L2 <- substitute(list(beta==b0),list(b0=300))
plot(1:10,main=L1) # Works fine.
plot(1:10,main=L2) # Works fine.
2010 Jul 30
2
Ouput several lines of cat
Hello,
I am brand new to R. I need to know how to output the contents of cat
function into a text file. The cat is used to output several lines of string
in the following format:
X XXX
X XX.XX
XXXX-XXXX ( XX.XX XXX )
I need to get the output of all these lines into a text file.
I tried to put a file name in the cat function. However the output file only
displays single line output.
Thanks
--