diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2002-09-03 21:45:44 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2002-09-03 21:45:44 +0000 |
commit | 77f7763b55a89254f3b4be1f92402188bf2575b8 (patch) | |
tree | 95af88df05d1251ee25dd28cf826c664748daa14 /src/backend/utils/adt/varchar.c | |
parent | 86f27321e25b5a1a7b6c78400e54f063525b07d5 (diff) | |
download | postgresql-77f7763b55a89254f3b4be1f92402188bf2575b8.tar.gz postgresql-77f7763b55a89254f3b4be1f92402188bf2575b8.zip |
Remove all traces of multibyte and locale options. Clean up comments
referring to "multibyte" where it really means character encoding.
Diffstat (limited to 'src/backend/utils/adt/varchar.c')
-rw-r--r-- | src/backend/utils/adt/varchar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/adt/varchar.c b/src/backend/utils/adt/varchar.c index e1181dd375f..819e3122c3c 100644 --- a/src/backend/utils/adt/varchar.c +++ b/src/backend/utils/adt/varchar.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.92 2002/08/29 07:22:27 ishii Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.93 2002/09/03 21:45:42 petere Exp $ * *------------------------------------------------------------------------- */ @@ -350,8 +350,8 @@ name_bpchar(PG_FUNCTION_ARGS) * Convert a C string to VARCHAR internal representation. atttypmod * is the declared length of the type plus VARHDRSZ. * - * Note that if MULTIBYTE is enabled, atttypmod is regarded as the - * number of characters, rather than number of bytes. + * Note that atttypmod is regarded as the number of characters, which + * is not necessarily the same as the number of bytes. * * If the C string is too long, * raise an error, unless the extra characters are spaces, in which @@ -450,7 +450,7 @@ varchar(PG_FUNCTION_ARGS) { size_t maxmblen; - /* truncate multi-byte string preserving multi-byte boundary */ + /* truncate multibyte string preserving multibyte boundary */ maxmblen = pg_mbcharcliplen(VARDATA(source), len - VARHDRSZ, maxlen - VARHDRSZ) + VARHDRSZ; |