Skip to content

Commit

Permalink
Fixed CORE-2561 - Incorrect database name transliteration when connec…
Browse files Browse the repository at this point in the history
…ting using WNET or XNET
  • Loading branch information
asfernandes committed Jul 19, 2009
1 parent b32e6d6 commit 68ebf17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/remote/interface.cpp
Expand Up @@ -5772,6 +5772,7 @@ static bool init(ISC_STATUS* user_status,
// This is FB < 2.5. Lets remove that not recognized DPB and convert the UTF8
// strings to the OS codepage.
dpb.deleteWithTag(isc_dpb_utf8_filename);
ISC_unescape(file_name);
ISC_utf8ToSystem(file_name);

for (dpb.rewind(); !dpb.isEof(); dpb.moveNext())
Expand All @@ -5792,6 +5793,7 @@ static bool init(ISC_STATUS* user_status,
{
string s;
dpb.getString(s);
ISC_unescape(s);
ISC_utf8ToSystem(s);
dpb.deleteClumplet();
dpb.insertString(tag, s);
Expand Down
3 changes: 2 additions & 1 deletion src/remote/os/win32/wnet.cpp
Expand Up @@ -180,7 +180,8 @@ rem_port* WNET_analyze(const Firebird::PathName& file_name,
REMOTE_PROTOCOL(PROTOCOL_VERSION7, ptype_rpc, ptype_batch_send, 1),
REMOTE_PROTOCOL(PROTOCOL_VERSION8, ptype_rpc, ptype_batch_send, 2),
REMOTE_PROTOCOL(PROTOCOL_VERSION10, ptype_rpc, ptype_batch_send, 3),
REMOTE_PROTOCOL(PROTOCOL_VERSION11, ptype_rpc, ptype_batch_send, 4)
REMOTE_PROTOCOL(PROTOCOL_VERSION11, ptype_rpc, ptype_batch_send, 4),
REMOTE_PROTOCOL(PROTOCOL_VERSION12, ptype_rpc, ptype_batch_send, 5)
#ifdef SCROLLABLE_CURSORS
,
REMOTE_PROTOCOL(PROTOCOL_SCROLLABLE_CURSORS, ptype_rpc, ptype_batch_send, 99)
Expand Down
3 changes: 2 additions & 1 deletion src/remote/xnet.cpp
Expand Up @@ -260,7 +260,8 @@ rem_port* XNET_analyze(const Firebird::PathName& file_name,
REMOTE_PROTOCOL(PROTOCOL_VERSION7, ptype_rpc, ptype_batch_send, 1),
REMOTE_PROTOCOL(PROTOCOL_VERSION8, ptype_rpc, ptype_batch_send, 2),
REMOTE_PROTOCOL(PROTOCOL_VERSION10, ptype_rpc, ptype_batch_send, 3),
REMOTE_PROTOCOL(PROTOCOL_VERSION11, ptype_rpc, ptype_batch_send, 4)
REMOTE_PROTOCOL(PROTOCOL_VERSION11, ptype_rpc, ptype_batch_send, 4),
REMOTE_PROTOCOL(PROTOCOL_VERSION12, ptype_rpc, ptype_batch_send, 5)
#ifdef SCROLLABLE_CURSORS
,
REMOTE_PROTOCOL(PROTOCOL_SCROLLABLE_CURSORS, ptype_rpc, ptype_batch_send, 99)
Expand Down

0 comments on commit 68ebf17

Please sign in to comment.