Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sf::err output to wofstream  (Read 4206 times)

0 Members and 1 Guest are viewing this topic.

dk123

  • Newbie
  • *
  • Posts: 49
    • View Profile
sf::err output to wofstream
« on: November 02, 2015, 08:35:02 pm »
Hi, I'm currently using a wofstream to output to my debug file with wide characters.
I was wondering if sf::err() could somehow take in a wofstream instead of an ofstream.

Does anyone have any ideas?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: sf::err output to wofstream
« Reply #1 on: November 02, 2015, 10:49:01 pm »
Not that I know of, but I bet you could somehow redirect the sf::err() buffer to go into a wofstream buffer.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Mr_Blame

  • Full Member
  • ***
  • Posts: 192
    • View Profile
    • Email
Re: sf::err output to wofstream
« Reply #2 on: February 12, 2016, 03:56:32 pm »
Well, sf::err return ostream instance. Ostream is
char
only.  :-\

Mr_Blame

  • Full Member
  • ***
  • Posts: 192
    • View Profile
    • Email
Re: sf::err output to wofstream
« Reply #3 on: February 12, 2016, 03:58:17 pm »
But you can redirect sfml error output to file stream. :D

 

anything