pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tatsuo Ishii <ishii@postgresql.org>
To: nagata@sraoss.co.jp
Cc: daniel@yesql.se
Cc: pgsql-hackers@postgresql.org
Subject: Re: Doc: typo in config.sgml
Date: Mon, 30 Sep 2024 20:07:31 +0900 (JST)
Message-ID: <20240930.200731.666191321972616000.ishii@postgresql.org> (raw)
In-Reply-To: <20240930193402.e4630ff8288305b480705243@sraoss.co.jp>
References: <20240930.180344.557179938418470100.ishii@postgresql.org>
	<F7102912-0BDA-42A3-BDCF-8A4CBD1CC688@yesql.se>
	<20240930193402.e4630ff8288305b480705243@sraoss.co.jp>

>> I wonder if it would be worth to add a check for this like we have to tabs?

+1.

>> The attached adds a rule to "make -C doc/src/sgml check" for trapping nbsp
>> (doing so made me realize we don't have an equivalent meson target).
> 
> Your patch couldn't detect 0xA0 in config.sgml in my machine, but it works
> when I use `grep -P "[\xA0]"` instead of `grep -e "\xA0"`.
> 
> However, it also detects the following line in charset.sgml.
> (https://www.postgresql.org/docs/current/collation.html)
> 
>  For example, locale und-u-kb sorts 'àe' before 'aé'.
> 
> This is not non-breaking space, so should not be detected as an error.

That's because non-breaking space (nbsp) is not encoded as 0xa0 in
UTF-8. nbsp in UTF-8 is "0xc2 0xa0" (2 bytes) (A 0xa0 is a nbsp's code
point in Unicode. i.e. U+00A0).
So grep -P "[\xC2\xA0]" should work to detect nbsp.

Best reagards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp





view thread (70+ messages)  latest in thread

Message-ID: <20240930.200731.666191321972616000.ishii@postgresql.org>
Permalink:  ../20240930.200731.666191321972616000.ishii@postgresql.org/
Also on:    postgresql.org/message-id/20240930.200731.666191321972616000.ishii@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: ishii@postgresql.org, nagata@sraoss.co.jp, daniel@yesql.se
  Subject: Re: Doc: typo in config.sgml
  In-Reply-To: <20240930.200731.666191321972616000.ishii@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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