Opening database with ANSI characters in filename using Firebird Embedded
-------------------------------------------------------------------------
Key: DNET-321
URL: http://tracker.firebirdsql.org/browse/DNET-321
Project: .NET Data provider
Issue Type: Bug
Components: ADO.NET Provider
Affects Versions: 2.5.2
Environment: FB .NET Client 2.5.2
FBEmbed.dll 2.5 RC2
Reporter: Robert Kindl
Assignee: Jiri Cincura
In current version Firebird Embedded expects filenames to be in ANSI code page,
but FB .NET provider encodes filename using charset specified in connection
string.
This effectively prevents opening anything that is not base ASCII 128.
I suggest following patch in class FesDatabase
in method AttachDatabase and CreateDatabase replace following code:
byte[] databaseBuffer = this.Charset.GetBytes(database);
with:
byte[] databaseBuffer =
System.Text.Encoding.Default.GetBytes(database);
In future when Firebird Embedded will support full unicode filenames this can
be reverted or maybe implemented according to this future API change.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider