Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
67f6b333
Commit
67f6b333
authored
May 28, 2000
by
Tatsuo Ishii
Browse files
Options
Downloads
Patches
Plain Diff
Make EUC_CN support more robust.
parent
46645b93
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/utils/mb/wchar.c
+6
-2
6 additions, 2 deletions
src/backend/utils/mb/wchar.c
with
6 additions
and
2 deletions
src/backend/utils/mb/wchar.c
+
6
−
2
View file @
67f6b333
/*
* conversion functions between pg_wchar and multi-byte streams.
* Tatsuo Ishii
* $Id: wchar.c,v 1.11 2000/0
4/12 17:16:06 momjian
Exp $
* $Id: wchar.c,v 1.11
.2.1
2000/0
5/28 04:57:06 ishii
Exp $
*
* WIN1250 client encoding updated by Pavel Behal
*
...
...
@@ -166,7 +166,11 @@ pg_euccn_mblen(const unsigned char *s)
{
int
len
;
if
(
*
s
&
0x80
)
/* if the first byte > 0x80, then second byte must be > 0x80, also,
* according to the EUC-CN standard. But in reality there are
* so many broken EUC-CN data violating the rule. Sigh.
*/
if
((
*
s
&
0x80
)
&&
(
*
(
s
+
1
)
&
0x80
))
len
=
2
;
else
len
=
1
;
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment