Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 632afb7

Browse files
committed
Fix skip_space macro to make it correctly handle utf-8 on systems with broken locales such as Solaris
1 parent bb3c02b commit 632afb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_hint_plan/pg_hint_plan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ PG_MODULE_MAGIC;
9090
errdetail detail))
9191

9292
#define skip_space(str) \
93-
while (isspace(*str)) \
93+
while (isspace(*str) && (*str &0x80)== 0) \
9494
str++;
9595

9696
enum

0 commit comments

Comments
 (0)