endash not a graphic character?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-general(at)postgresql(dot)org
Subject: endash not a graphic character?
Date: 2016-08-20 19:04:05
Message-ID: 20160820190405.GA14926@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I was surprised to find endash and emdash were not graphic characters in
en_US. I'm not sure if this is correct behavior, a bug in postgres or a
bug in my OS' collation definitions?

For example:

Dash:
area=> select '-' ~ '[[:graph:]]' collate "en_US";
?column?
----------
t
(1 row)

Endash:
area=> select '–' ~ '[[:graph:]]' collate "en_US";
?column?
----------
f
(1 row)

Emdash:
area=> select '—' ~ '[[:graph:]]' collate "en_US";
?column?
----------
f
(1 row)

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2016-08-20 19:12:30 Re: Critical failure of standby
Previous Message Francisco Olarte 2016-08-20 09:21:42 Re: Limit Heap Fetches / Rows Removed by Filter in Index Scans