From f1e13fdc8d9e78f4529aa60b6a9b49c6ff063c66 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Sun, 26 Jan 2020 20:27:13 +0400 Subject: MDEV-21581 Helper functions and methods for CHARSET_INFO --- mysys/mf_dirname.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mysys/mf_dirname.c') diff --git a/mysys/mf_dirname.c b/mysys/mf_dirname.c index 700a68e4f3a..12fd15f82b9 100644 --- a/mysys/mf_dirname.c +++ b/mysys/mf_dirname.c @@ -1,4 +1,5 @@ /* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2009, 2020, MariaDB Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -34,7 +35,7 @@ size_t dirname_length(const char *name) { #ifdef BASKSLASH_MBTAIL uint l; - if (use_mb(fs) && (l= my_ismbchar(fs, pos, pos + 3))) + if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, pos, pos + 3))) { pos+= l - 1; continue; @@ -123,7 +124,7 @@ char *convert_dirname(char *to, const char *from, const char *from_end) { #ifdef BACKSLASH_MBTAIL uint l; - if (use_mb(fs) && (l= my_ismbchar(fs, from, from + 3))) + if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, from, from + 3))) { memmove(to, from, l); to+= l; -- cgit v1.2.1