Re: Add remove duplicate slashes to canonicalize_path()

Поиск
Список
Период
Сортировка
От Reini Urban
Тема Re: Add remove duplicate slashes to canonicalize_path()
Дата
Msg-id 418DDD3D.70507@x-ray.at
обсуждение исходный текст
Ответ на Add remove duplicate slashes to canonicalize_path()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian schrieb:
> The following applied patch removes duplicate slashes from the path in
> canonicalize_path().  It preserve double leading slashes on Win32.
>
> e.g.    ////a////b => /a/b
snip
>    *        o  make Win32 path use Unix slashes
>    *        o  remove trailing quote on Win32
>    *        o  remove trailing slash
>    *        o  remove trailing '.'
>    *        o  process trailing '..' ourselves

At the first glance I thought this will break Win95 (via cygwin), but it
really is ok, 'cause all the paths go through cygwin.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

В списке pgsql-patches по дате отправления:

Предыдущее
От: Markus Bertheau
Дата:
Сообщение: Re: contrib/xml2: add function xml_encode_special_chars
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: contrib/xml2: add function xml_encode_special_chars