FreeBSD Bugzilla – Attachment 98184 Details for
Bug 137051
finance/libofx does not handle encoding properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1010 bytes, created by
Takanori Watanabe
on 2009-07-24 13:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Takanori Watanabe
Created:
2009-07-24 13:20:01 UTC
Size:
1010 bytes
patch
obsolete
>--- lib/ofx_preproc.cpp.orig 2009-07-24 18:48:05.000000000 +0900 >+++ lib/ofx_preproc.cpp 2009-07-24 20:34:52.000000000 +0900 >@@ -151,7 +151,7 @@ > fromcode=LIBOFX_DEFAULT_INPUT_ENCODING; > } > } >- else if(ofx_encoding.compare("USASCII")==0) { >+ else if(ofx_encoding.compare("UTF-8")==0) { > fromcode="UTF-8"; > } > else >@@ -170,6 +170,16 @@ > header_name.assign(s_buffer.substr(0,header_separator_idx)); > header_value.assign(s_buffer.substr(header_separator_idx+1)); > message_out(DEBUG,"ofx_proc_file():Header: "+header_name+" with value: "+header_value+" has been found"); >+ >+ if((header_separator_idx = header_value.find('\r', 0)) >+ != std::string::npos) >+ header_value.resize(header_separator_idx); >+ >+ if((header_separator_idx = header_value.find('\n', 0)) >+ != std::string::npos) >+ header_value.resize(header_separator_idx); >+ >+ > if(header_name.compare("ENCODING")==0) { > ofx_encoding.assign(header_value); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 137051
: 98184