rugged 0.21.2 → 0.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,21 +10,6 @@
10
10
  #include <wchar.h>
11
11
  #include "common.h"
12
12
 
13
- /* Equal to the Win32 MAX_PATH constant. The maximum path length is 259
14
- * characters plus a NULL terminator. */
15
- #define GIT_WIN_PATH_UTF16 260
16
-
17
- /* Maximum size of a UTF-8 Win32 path. UTF-8 does have 4-byte sequences,
18
- * but they are encoded in UTF-16 using surrogate pairs, which takes up
19
- * the space of two characters. Two characters in the range U+0800 ->
20
- * U+FFFF take up more space in UTF-8 (6 bytes) than one surrogate pair
21
- * (4 bytes). */
22
- #define GIT_WIN_PATH_UTF8 (259 * 3 + 1)
23
-
24
- /* Win32 path types */
25
- typedef wchar_t git_win32_path[GIT_WIN_PATH_UTF16];
26
- typedef char git_win32_utf8_path[GIT_WIN_PATH_UTF8];
27
-
28
13
  /**
29
14
  * Converts a UTF-8 string to wide characters.
30
15
  *
@@ -67,28 +52,4 @@ int git__utf8_to_16_alloc(wchar_t **dest, const char *src);
67
52
  */
68
53
  int git__utf16_to_8_alloc(char **dest, const wchar_t *src);
69
54
 
70
- /**
71
- * Converts a UTF-8 Win32 path to wide characters.
72
- *
73
- * @param dest The buffer to receive the wide string.
74
- * @param src The UTF-8 string to convert.
75
- * @return The length of the wide string, in characters (not counting the NULL terminator), or < 0 for failure
76
- */
77
- GIT_INLINE(int) git_win32_path_from_utf8(git_win32_path dest, const char *src)
78
- {
79
- return git__utf8_to_16(dest, GIT_WIN_PATH_UTF16, src);
80
- }
81
-
82
- /**
83
- * Converts a wide Win32 path to UTF-8.
84
- *
85
- * @param dest The buffer to receive the UTF-8 string.
86
- * @param src The wide string to convert.
87
- * @return The length of the UTF-8 string, in bytes (not counting the NULL terminator), or < 0 for failure
88
- */
89
- GIT_INLINE(int) git_win32_path_to_utf8(git_win32_utf8_path dest, const wchar_t *src)
90
- {
91
- return git__utf16_to_8(dest, GIT_WIN_PATH_UTF8, src);
92
- }
93
-
94
55
  #endif
@@ -9,6 +9,7 @@
9
9
  #define INCLUDE_w32_util_h__
10
10
 
11
11
  #include "utf-conv.h"
12
+ #include "path_w32.h"
12
13
 
13
14
  GIT_INLINE(bool) git_win32__isalpha(wchar_t c)
14
15
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rugged
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.2
4
+ version: 0.21.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-17 00:00:00.000000000 Z
12
+ date: 2015-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
@@ -427,6 +427,8 @@ files:
427
427
  - vendor/libgit2/src/win32/map.c
428
428
  - vendor/libgit2/src/win32/mingw-compat.h
429
429
  - vendor/libgit2/src/win32/msvc-compat.h
430
+ - vendor/libgit2/src/win32/path_w32.c
431
+ - vendor/libgit2/src/win32/path_w32.h
430
432
  - vendor/libgit2/src/win32/posix.h
431
433
  - vendor/libgit2/src/win32/posix_w32.c
432
434
  - vendor/libgit2/src/win32/precompiled.c