All of lore.kernel.org
 help / color / mirror / Atom feed
From: Babanpreet Singh <bbnpreetsingh@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Khem Raj <raj.khem@gmail.com>,
	Babanpreet Singh <bbnpreetsingh@gmail.com>
Subject: [meta-oe][PATCH 3/3] ptest-pgxs.bbclass: create the test database as UTF8
Date: Fri,  4 Dec 2026 01:58:23 +0000	[thread overview]
Message-ID: <20261204015823.7-4-bbnpreetsingh@gmail.com> (raw)
In-Reply-To: <20261204015823.7-1-bbnpreetsingh@gmail.com>

The test server is initialised under the C locale of the target, which
makes the database SQL_ASCII, and tests with non-ASCII text fail with
"conversion between UTF8 and SQL_ASCII is not supported".

AI-Generated: Uses Claude (claude-opus-5-5)
Signed-off-by: Babanpreet Singh <bbnpreetsingh@gmail.com>
---
 meta-oe/classes/ptest-pgxs.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/classes/ptest-pgxs.bbclass b/meta-oe/classes/ptest-pgxs.bbclass
index 89f482ba53..4c18ea84f5 100644
--- a/meta-oe/classes/ptest-pgxs.bbclass
+++ b/meta-oe/classes/ptest-pgxs.bbclass
@@ -91,7 +91,7 @@ chown -R postgres:postgres "$WORK"
 LOG="$WORK/pg_regress.log"
 { su postgres -c "cd $WORK && $PG_REGRESS \
       --temp-instance=$WORK/tmp_check --temp-config=$WORK/ptest.conf \
-      --bindir=$PGBIN --dbname=contrib_regression \
+      --bindir=$PGBIN --dbname=contrib_regression --encoding=UTF8 \
       $REGRESS_OPTS $REGRESS" 2>&1; echo $? > "$WORK/rc"; } |
     tee "$LOG" |
     sed -n -e 's/^ok [0-9]* *[-+] *\([^ ]*\).*/PASS: \1/p' \
-- 
2.43.0


      parent reply	other threads:[~2026-12-04  1:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  1:58 [meta-oe][PATCH 0/3] ptest-pgxs.bbclass: three fixes from porting more extensions Babanpreet Singh
2026-12-04  1:58 ` [meta-oe][PATCH 1/3] ptest-pgxs.bbclass: install expected output from --expecteddir Babanpreet Singh
2026-12-04  1:58 ` [meta-oe][PATCH 2/3] ptest-pgxs.bbclass: read EXTRA_REGRESS_OPTS too Babanpreet Singh
2026-12-04  1:58 ` Babanpreet Singh [this message]

Reply instructions:

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

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

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204015823.7-4-bbnpreetsingh@gmail.com \
    --to=bbnpreetsingh@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.