Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit35a0995

Browse files
committed
Fix encoding conversion function bug.
See following posting for more details.Subject: Re: [HACKERS] [BUGS] Bug #943: Server-Encoding from EUC_TW to UTF-8 doesn'tFrom: Tatsuo Ishii <t-ishii@sra.co.jp>To: michael.enke@wincor-nixdorf.com, pgsql-bugs@postgresql.orgCc: pgsql-hackers@postgresql.orgDate: Sat, 12 Apr 2003 10:51:45 +0900 (JST)
1 parentd8521b9 commit35a0995

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/utils/mb/conv.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/utils/mb/conv.c,v 1.44 2003/03/10 22:28:18 tgl Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/utils/mb/conv.c,v 1.45 2003/04/12 07:53:57 ishii Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -313,7 +313,7 @@ compare1(const void *p1, const void *p2)
313313

314314
v1=*(unsignedint*)p1;
315315
v2= ((pg_utf_to_local*)p2)->utf;
316-
return (v1-v2);
316+
return (v1>v2)?1:((v1==v2)?0:-1);
317317
}
318318

319319
/*
@@ -328,7 +328,7 @@ compare2(const void *p1, const void *p2)
328328

329329
v1=*(unsignedint*)p1;
330330
v2= ((pg_local_to_utf*)p2)->code;
331-
return (v1-v2);
331+
return (v1>v2)?1:((v1==v2)?0:-1);
332332
}
333333

334334
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp