projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e981fa
)
Fix encoding conversion function bug.
author
Tatsuo Ishii
<
[email protected]
>
Sat, 12 Apr 2003 08:01:23 +0000
(08:01 +0000)
committer
Tatsuo Ishii
<
[email protected]
>
Sat, 12 Apr 2003 08:01:23 +0000
(08:01 +0000)
See following posting for more details.
Subject: Re: [HACKERS] [BUGS] Bug #943: Server-Encoding from EUC_TW to UTF-8 doesn't
From: Tatsuo Ishii <
[email protected]
>
To:
[email protected]
,
[email protected]
Cc:
[email protected]
Date: Sat, 12 Apr 2003 10:51:45 +0900 (JST)
src/backend/utils/mb/conv.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/mb/conv.c
b/src/backend/utils/mb/conv.c
index 0964bdb7995706c04bda7ea2cd9e6565bd2e0b1c..f9dca01c6db911affc7bb0c05ca744225f673502 100644
(file)
--- a/
src/backend/utils/mb/conv.c
+++ b/
src/backend/utils/mb/conv.c
@@
-313,7
+313,7
@@
compare1(const void *p1, const void *p2)
v1 = *(unsigned int *) p1;
v2 = ((pg_utf_to_local *) p2)->utf;
- return (v1
- v2
);
+ return (v1
> v2)?1:((v1 == v2)?0:-1
);
}
/*
@@
-328,7
+328,7
@@
compare2(const void *p1, const void *p2)
v1 = *(unsigned int *) p1;
v2 = ((pg_local_to_utf *) p2)->code;
- return (v1
- v2
);
+ return (v1
> v2)?1:((v1 == v2)?0:-1
);
}
/*