search for: utf16

Displaying 20 results from an estimated 145 matches for "utf16".

Did you mean: utf
2019 Jan 22
2
[PATCH] lib: Reset errno to zero to avoid erroneously returning E2BIG
This line was accidentally removed in 77fe74fc, causing bug #1145056 (Bugzilla) to resurface. --- lib/utf16.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utf16.c b/lib/utf16.c index e099548..67fa996 100644 --- a/lib/utf16.c +++ b/lib/utf16.c @@ -58,6 +58,7 @@ _hivex_recode (hive_h *h, recode_type t, /* Reset errno here because we don't want to accidentally * return E2BIG to...
2018 Feb 09
3
[PATCH] Add a cache for iconv_t handles to hive_t
...e seen 57% savings in the overal runtime of running hivexregedit --export windows-8-enterprise-software.hive '\\' --- lib/handle.c | 43 ++++++++++++++++++++++++++++++++++++++++++- lib/hivex-internal.h | 31 ++++++++++++++++++++++--------- lib/node.c | 6 +++--- lib/utf16.c | 38 ++++++++++++++++---------------------- lib/value.c | 10 +++++----- lib/write.c | 4 ++-- 6 files changed, 90 insertions(+), 42 deletions(-) diff --git a/lib/handle.c b/lib/handle.c index 9dcf81d..7d715df 100644 --- a/lib/handle.c +++ b/lib/handle.c @@ -31,6 +31...
2013 Nov 24
4
[PATCH 1/3] lib: Further generalize iconv wrapper function.
--- lib/hivex-internal.h | 8 +++++--- lib/utf16.c | 11 +++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/hivex-internal.h b/lib/hivex-internal.h index 4135f58..64fd49a 100644 --- a/lib/hivex-internal.h +++ b/lib/hivex-internal.h @@ -268,11 +268,13 @@ extern size_t * _hivex_return_offset_list (offset_list *...
2013 Dec 31
0
[PATCH 2/2] lib: utf16: Fix const-correctness issues in _hivex_recode function.
This patch assumes that iconv doesn't actually modify the input buffer, even though it is declared as char *. --- lib/hivex-internal.h | 6 +++--- lib/utf16.c | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/hivex-internal.h b/lib/hivex-internal.h index 7a548c0..6bc8638 100644 --- a/lib/hivex-internal.h +++ b/lib/hivex-internal.h @@ -268,9 +268,9 @@ extern size_t * _hivex_return_offset_list (offset_list *list);...
2018 Feb 09
0
Re: [PATCH] Add a cache for iconv_t handles to hive_t
...untime of running > > hivexregedit --export windows-8-enterprise-software.hive '\\' > --- > lib/handle.c | 43 ++++++++++++++++++++++++++++++++++++++++++- > lib/hivex-internal.h | 31 ++++++++++++++++++++++--------- > lib/node.c | 6 +++--- > lib/utf16.c | 38 ++++++++++++++++---------------------- > lib/value.c | 10 +++++----- > lib/write.c | 4 ++-- > 6 files changed, 90 insertions(+), 42 deletions(-) > > diff --git a/lib/handle.c b/lib/handle.c > index 9dcf81d..7d715df 100644 > --- a/lib/handl...
2014 Jan 08
0
[PATCH 1/3] lib: Add internal function to calculate strlen for strings encoded in Latin1 or UTF-16LE
--- lib/hivex-internal.h | 1 + lib/utf16.c | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/lib/hivex-internal.h b/lib/hivex-internal.h index 6bc8638..7f4cc3c 100644 --- a/lib/hivex-internal.h +++ b/lib/hivex-internal.h @@ -277,6 +277,7 @@ extern char * _hivex_recode (const char *input_encoding, _hivex_recode (...
2018 Feb 09
2
[PATCH] Add a cache for iconv_t handles to hive_t
...-enterprise-software.hive '\\' --- bootstrap | 1 + configure.ac | 2 ++ lib/Makefile.am | 2 ++ lib/handle.c | 42 +++++++++++++++++++++++++++++++++++++++++- lib/hivex-internal.h | 31 ++++++++++++++++++++++--------- lib/node.c | 6 +++--- lib/utf16.c | 38 ++++++++++++++++---------------------- lib/value.c | 10 +++++----- lib/write.c | 4 ++-- m4/.gitignore | 2 ++ 10 files changed, 96 insertions(+), 42 deletions(-) diff --git a/bootstrap b/bootstrap index bd82477..373fad8 100755 --- a/bootstrap +++ b/boo...
2013 Nov 22
0
[PATCH 3/3] Correctly handle latin1-encoded key/value names
--- lib/hivex-internal.h | 6 +++++- lib/node.c | 7 +------ lib/utf16.c | 5 ++--- lib/value.c | 7 +------ 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/lib/hivex-internal.h b/lib/hivex-internal.h index d7ce339..4135f58 100644 --- a/lib/hivex-internal.h +++ b/lib/hivex-internal.h @@ -268,7 +268,11 @@ extern size_t * _hivex_return_...
2012 Jan 17
1
[LLVMdev] [cfe-dev] LLVM & Clang file management
...> > I've been trying to fix it but can't get anyone to review the patches (Aaron > Ballman did a review but he doesn't have commit access). The problem is that > ::stat function can't handle UTF8 paths on Windows. My solution was to get > the command line arguments as UTF16 and convert them to UTF8 and then > convert them back to UTF16 before calling ::_wstat. The problem is that stat > structure is used throughout the code base, and ::_wstat has different > parameter type. This solution is far from perfect. It seems to me that what > you're discussing...
2013 Dec 31
2
[PATCH 1/2] lib: write: Remove unused variable.
...e_set_values (hive_h *h, hive_node_h node, for (i = 0; i < nr_values; ++i) { /* Allocate vk record to store this (key, value) pair. */ static const char vk_id[2] = { 'v', 'k' }; - size_t name_len = strlen (values[i].key); size_t recoded_name_len; int use_utf16; char* recoded_name = _hivex_encode_string (values[i].key, &recoded_name_len, -- 1.8.4.2
2014 Nov 06
3
[PATCH 0/2] hivex: small portability fixes
...is small series cherry-picks a couple of the portability fixes recently done in libguestfs to hivex. There should be no actual change on Linux. Thanks, -- Pino Pino Toscano (2): normalize iconv handling ruby: fix detection of ruby library bootstrap | 1 + configure.ac | 8 +++++++- lib/utf16.c | 3 +-- 3 files changed, 9 insertions(+), 3 deletions(-) -- 1.9.3
2014 Mar 05
1
DFS
...ause parent informatika is dfs link dfs_redirect: Redirecting domainc02\dfs\informatika\desktop.ini filename_convert_internal: resolve_dfspath failed for name domainc02\dfs\informatika\desktop.ini with NT_STATUS_PATH_NOT_COVERED dfs_samba4: Requested DFS name: \domainc02\dfs\informatika\desktop.ini utf16-length: 76 Requested DFS name: \domainc02\dfs\informatika\desktop.ini length: 76 servername : '\domainc02\dfs\informatika\desktop.ini' parse_dfs_path: temp = |domainc02\dfs\informatika\desktop.ini| after trimming \'s parse_dfs_path: rest of the path: informatika/desktop.ini smbd_smb2_cr...
2006 May 26
13
win32-dir, unicode
Hi, I''ve got a preliminary version of the pure Ruby version of win32-dir in CVS. However, I was hoping to work out the Unicode issue. Run this: from = "C:\\test" to = "?????" Dir.mkdir(from) unless File.exists?(from) Dir.create_junction(to, from) It works, but my explorer (and dos) window shows the name garbled. I don''t think it''s a font
2011 Dec 24
0
[LLVMdev] [cfe-dev] LLVM & Clang file management
...s/show_bug.cgi?id=10348 I've been trying to fix it but can't get anyone to review the patches (Aaron Ballman did a review but he doesn't have commit access). The problem is that ::stat function can't handle UTF8 paths on Windows. My solution was to get the command line arguments as UTF16 and convert them to UTF8 and then convert them back to UTF16 before calling ::_wstat. The problem is that stat structure is used throughout the code base, and ::_wstat has different parameter type. This solution is far from perfect. It seems to me that what you're discussing would solve this is...
2019 Jan 22
0
Re: [PATCH] lib: Reset errno to zero to avoid erroneously returning E2BIG
On Tue, Jan 22, 2019 at 04:43:31PM -0500, Michael Meyer wrote: > This line was accidentally removed in 77fe74fc, causing > bug #1145056 (Bugzilla) to resurface. > --- > lib/utf16.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/utf16.c b/lib/utf16.c > index e099548..67fa996 100644 > --- a/lib/utf16.c > +++ b/lib/utf16.c > @@ -58,6 +58,7 @@ _hivex_recode (hive_h *h, recode_type t, > /* Reset errno here because we don't want t...
2014 Jan 06
1
Re: [PATCH 2/2] lib: utf16: Fix const-correctness issues in _hivex_recode function.
On Tuesday 31 December 2013 14:27:11 Richard W.M. Jones wrote: > This patch assumes that iconv doesn't actually modify the > input buffer, even though it is declared as char *. > --- > [...] > @@ -51,10 +51,11 @@ _hivex_recode (char *input_encoding, const char > *input, size_t input_len, errno = err; > return NULL; > } > - char *inp = input; > + const
2019 Jan 22
2
Re: [PATCH] lib: Reset errno to zero to avoid erroneously returning E2BIG
...el On Tue, Jan 22, 2019 at 5:22 PM Richard W.M. Jones <rjones@redhat.com> wrote: > On Tue, Jan 22, 2019 at 04:43:31PM -0500, Michael Meyer wrote: > > This line was accidentally removed in 77fe74fc, causing > > bug #1145056 (Bugzilla) to resurface. > > --- > > lib/utf16.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/lib/utf16.c b/lib/utf16.c > > index e099548..67fa996 100644 > > --- a/lib/utf16.c > > +++ b/lib/utf16.c > > @@ -58,6 +58,7 @@ _hivex_recode (hive_h *h, recode_type t, > > /* Reset...
2017 Jul 31
0
[PATCH v11 03/10] daemon: utils: New functions unix_canonical_path, utf16le_to_utf8 and tests.
...x_canonical_path "/usr/local" = "/usr/local"); + assert (unix_canonical_path "///" = "/"); + assert (unix_canonical_path "///usr//local//" = "/usr/local"); + assert (unix_canonical_path "/usr///" = "/usr") + +(* Test utf16le_to_utf8. *) +let () = + assert (utf16le_to_utf8 "\x57\x00\x69\x00\x6e\x00\x64\x00\x6f\x00\x77\x00\x73\x00" = "Windows"); + assert (utf16le_to_utf8 "\x57\x00\x69\x00\x6e\x00\x64\x00\x6f\x00\x77\x00\x73\x00\xae\x00" = "Windows\xc2\xae") diff --git a/daemon/...
2008 Jun 18
2
[ win32utils-Bugs-20722 ] Windows::Error.get_last_error only returns the first character (PATCH)
...in win32-api, api.c, this code: // The order of ''A'' and ''W'' is reversed if $KCODE is set to ''UTF8''. if(!strcmp(rb_get_kcode(), "UTF8")){ first = "W"; second = "A"; } W functions accept/return UTF16 not UTF8, which breaks the rest of the win32-* modules hard, as the bug above exhibits. For example, Win32::Events are now created by passing UTF8 Ruby string data to an interface expecting UTF16 (see the name parameter). Setting $KCODE to UTF8 should not change the interface of these functions,...
2013 Nov 22
4
[PATCH 1/3] Document ntreg_nk_record.flags
--- lib/hivex-internal.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/hivex-internal.h b/lib/hivex-internal.h index f391b98..d7ce339 100644 --- a/lib/hivex-internal.h +++ b/lib/hivex-internal.h @@ -125,7 +125,19 @@ struct ntreg_hbin_block { struct ntreg_nk_record { int32_t seg_len; /* length (always -ve because used) */ char id[2];