Skip to content
Snippets Groups Projects
Commit 41a1eb48 authored by Michael Paquier's avatar Michael Paquier
Browse files

pg_sasl_prep: Fix calculation borders of Hangul characters

I have mislead the Unicode code with the real hexadecimal values, leading
to a bunch of errors with decompositions and recompositions.
parent b63b368c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -34,10 +34,10 @@ PG_MODULE_MAGIC;
#define ARRNELEMS(x) ArrayGetNItems(ARR_NDIM(x), ARR_DIMS(x))
 
/* Constants for calculations wih Hangul characters */
#define SBASE 0xAC00
#define LBASE 0x1100
#define VBASE 0x1161
#define TBASE 0x11A7
#define SBASE 0xEAB080 /* U+AC00 */
#define LBASE 0xE18480 /* U+1100 */
#define VBASE 0xE185A1 /* U+1161 */
#define TBASE 0xE186A7 /* U+11A7 */
#define LCOUNT 19
#define VCOUNT 21
#define TCOUNT 28
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment