* config/locale/ieee_1003.1-2001/codecvt_specializations.h
authorAndreas Schwab <schwab@suse.de>
Sun, 27 Apr 2003 19:51:25 +0000 (19:51 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Sun, 27 Apr 2003 19:51:25 +0000 (19:51 +0000)
(__enc_traits): Use __ibom and __ebom instead of ignoring them.

From-SVN: r66136

libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/ieee_1003.1-2001/codecvt_specializations.h

index 0642620f3b233ebc7dde4d7aad8df704ed79ad07..e17f48769d6feb3925e38a59f62b9b3e3049dba4 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-27  Andreas Schwab  <schwab@suse.de>
+
+       * config/locale/ieee_1003.1-2001/codecvt_specializations.h
+       (__enc_traits): Use __ibom and __ebom instead of ignoring them.
+
 2003-04-27  Nathan Myers  <ncm@cantrip.org>
 
        Move some basic_string members out of line because
index 45c069d342ecb98eb4fe5f7e959a93d26682954e..9d204ed5d33d7b4d5837ce6068c9ae2918524b7f 100644 (file)
@@ -36,7 +36,7 @@
 // Written by Benjamin Kosnik <bkoz@cygnus.com>
 
   // XXX
-  // Define this here to codecvt.cc can have _S_max_size definition.
+  // Define this here so codecvt.cc can have _S_max_size definition.
 #define _GLIBCPP_USE___ENC_TRAITS 1
 
   // Extension to use icov for dealing with character encodings,
@@ -81,7 +81,7 @@
 
     explicit __enc_traits(const char* __int, const char* __ext, 
                          int __ibom = 0, int __ebom = 0)
-    : _M_in_desc(0), _M_out_desc(0), _M_ext_bom(0), _M_int_bom(0)
+    : _M_in_desc(0), _M_out_desc(0), _M_ext_bom(__ebom), _M_int_bom(__ibom)
     {
       strncpy(_M_int_enc, __int, _S_max_size);
       strncpy(_M_ext_enc, __ext, _S_max_size);