Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d07bacd5
Commit
d07bacd5
authored
Oct 15, 2001
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add UTF-8 char >= 0x10000 check
parent
9bc15d49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/backend/utils/mb/wchar.c
src/backend/utils/mb/wchar.c
+10
-2
No files found.
src/backend/utils/mb/wchar.c
View file @
d07bacd5
/*
* conversion functions between pg_wchar and multi-byte streams.
* Tatsuo Ishii
* $Id: wchar.c,v 1.2
3 2001/10/11 14:20:3
5 ishii Exp $
* $Id: wchar.c,v 1.2
4 2001/10/15 01:19:1
5 ishii Exp $
*
* WIN1250 client encoding updated by Pavel Behal
*
...
...
@@ -537,11 +537,19 @@ pg_verifymbstr(const unsigned char *mbstr, int len)
int
slen
=
0
;
/* we do not check single byte encodings */
if
(
pg_
encoding_max_length
(
GetDatabaseEncoding
()
)
<=
1
)
if
(
pg_
database_encoding_max_length
(
)
<=
1
)
return
NULL
;
while
(
len
>
0
&&
*
mbstr
)
{
/* special UTF-8 check */
if
(
GetDatabaseEncoding
()
==
PG_UTF8
&&
(
*
mbstr
&
0xf8
)
==
0xf0
)
{
snprintf
(
buf
,
sizeof
(
buf
),
"Unicode >= 0x10000 is not supoorted"
);
return
(
buf
);
}
l
=
pg_mblen
(
mbstr
);
/* multi-byte letter? */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment