Feature Requests item #2787813, was opened at 2009-05-06 13:54
Message generated for change (Comment added) made by sjoerd
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482471&aid=2787813&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: None
>Group: None
>Status: Closed
Priority: 5
Private: No
Submitted By: Wouter Alink (vzzzbx)
Assigned to: Nobody/Anonymous (nobody)
Summary: mclient: BOM on stdin not accepted

Initial Comment:
A little experiment (on the head) reveals a bug in mclient (it does
not handle correctly the optional BOM at the beginning of the input):

$ cat selectWithBOM.py
print "\xEF\xBB\xBFSELECT 1;"
$ python selectWithBOM.py > queryWithBOM.sql
$ xxd queryWithBOM.sql
0000000: efbb bf53 454c 4543 5420 313b 0a         ...SELECT 1;.
$ cat queryWithBOM.sql
SELECT 1;
$ echo "SELECT 1;" | mclient -lsql
% . # table_name
% single_value # name
% tinyint # type
% 1 # length
[ 1     ]
$ cat queryWithBOM.sql | mclient -lsql
(Hangs)

----------------------------------------------------------------------

>Comment By: Sjoerd Mullender (sjoerd)
Date: 2009-05-20 17:12

Message:
Implemented.
That is to say, only if the BOM occurs at the beginning of a file.
Test added: sql/src/test/BugTracker-2009/Tests/BOM.SF-2787813.sql

----------------------------------------------------------------------

Comment By: Sjoerd Mullender (sjoerd)
Date: 2009-05-07 14:28

Message:
As far as I know, Unicode does not require the BOM to be supported in the
UTF-8 encoding.  If you can point me to the place in any appropriate
document that support is required, this is a bug, otherwise a feature
request.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482471&aid=2787813&group_id=56967

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to