# OS-Specific "\\n" Interpolation?

**URL:** <https://www.ruby-forum.com/t/os-specific-n-interpolation/102639>\
**Category:** Ruby\
**Created:** [January 1, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/os-specific-n-interpolation/102639 "2007-01-01T20:41:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coldtone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9e8a1a/32.png) [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Post date:** [January 1, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/os-specific-n-interpolation/102639/1 "2007-01-01T20:41:59Z")

</div>

Coming from Perl and C I have come to expect “\n” to be translated  
differently depending on OS–especially when doing sockets protocol  
programming. Ruby _appears_ to be subject to this same OS/clib  
translation issue which is so often overlooked. Was hoping Ruby  
shielded the average user from this. Has anyone else had any experience  
confirming or denying this? I’ve written up the details in a blog post:

[http://rob.muhlestein.net/2007/01/watch-those-newlines-ruby-no-different.html](http://rob.muhlestein.net/2007/01/watch-those-newlines-ruby-no-different.html)
