pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14415: non-breaking space matching in regex as whitespace
2+ messages / 2 participants
[nested] [flat]

* BUG #14415: non-breaking space matching in regex as whitespace
@ 2016-11-07 11:57  valerijs.gusjkovs@gmail.com
  0 siblings, 1 reply; 2+ messages in thread

From: valerijs.gusjkovs@gmail.com @ 2016-11-07 11:57 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14415
Logged by:          Valery Guskov
Email address:      valerijs.gusjkovs@gmail.com
PostgreSQL version: 9.6.0
Operating system:   RedHat
Description:        

This was workng on 9.4 at least, but does not in 9.6. Followind returns
should be reversed as non-breaking space is whitespace:

select 'Web project experience' ~* 'Web\S+' as pew;
 pew
-----
 t
(1 row)

_______________________________________________

select 'Web project experience' ~* 'Web\s+' as pew;
 pew
-----
 f
(1 row)


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


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

* Re: BUG #14415: non-breaking space matching in regex as whitespace
@ 2016-11-07 15:05  Tom Lane <tgl@sss.pgh.pa.us>
  parent: valerijs.gusjkovs@gmail.com
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-11-07 15:05 UTC (permalink / raw)
  To: valerijs.gusjkovs@gmail.com; +Cc: pgsql-bugs

valerijs.gusjkovs@gmail.com writes:
> This was workng on 9.4 at least, but does not in 9.6. Followind returns
> should be reversed as non-breaking space is whitespace:

What encoding and LC_CTYPE are you using?  AFAIR we haven't changed
anything about that code behavior since 9.4, so the most likely theory
is that your 9.6 installation is using a locale/encoding that doesn't
consider NBSP to be whitespace --- as C locale wouldn't, for example.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



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


end of thread, other threads:[~2016-11-07 15:05 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-11-07 11:57 BUG #14415: non-breaking space matching in regex as whitespace valerijs.gusjkovs@gmail.com
2016-11-07 15:05 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox