Author Topic: Weird characters in Build window  (Read 20674 times)

ypereto

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Re: Weird characters in Build window
« Reply #15 on: September 07, 2011, 01:58:42 pm »
I'm running Ubuntu 11.04 and SlickEdit v16.0.2.0 64bit
I was able to fix this by changing the following settings:

1. Create a file named /home/<your user>/.slickedit/16.0.2/vslick.ini with the following contents
Code: [Select]
; This INI file is intended to contain SlickEdit environment
; variables.
;
[Environment]
LC_CTYPE=C

2. Set the def_build_shell macro to "/bin/sh -i"
Macro -> Set Macro Variable
Variable: def_build_shell
Value: /bin/sh -i

lwb78750

  • Community Member
  • Posts: 53
  • Hero Points: 1
  • Senior Software Engineer, C++, Qt, C, etc...
Re: Weird characters in Build window
« Reply #16 on: September 08, 2011, 08:25:28 pm »
Wow! I put up with the same problem for over a year! (on Linux) Thanks for the solution!

murali

  • Community Member
  • Posts: 31
  • Hero Points: 0
Re: Weird characters in Build window
« Reply #17 on: November 03, 2012, 05:40:21 am »
How do we fix this problem for Windows? I am running SlickEdit 2012 (v17.0.2.0 64-bit).

thanks,
Murali

hs2

  • Senior Community Member
  • Posts: 2754
  • Hero Points: 291
Re: Weird characters in Build window
« Reply #18 on: November 03, 2012, 08:26:55 am »
@murali: Ususally there is no such problem with Windows. At least when using native tools.
Question is what's your setup showing the problem and what's the problem in more detail.
HS2

murali

  • Community Member
  • Posts: 31
  • Hero Points: 0
Re: Weird characters in Build window
« Reply #19 on: November 03, 2012, 06:50:14 pm »
I am using g++ (GCC) 4.3.4 20090804 (release) 1 as the compiler and it is part of Cygwin.

This is the same output, I get. Let me know if any additional details are required..

Code: [Select]
C:\test\foo>"c:\program files\slickeditv17.0.2 x64\win\vsbuild" -signal 55112 -command make -f "foo" CFG=Debug
VSLICKERRORPATH="C:\test\foo"
make -f foo CFG=Debug
cc     foo.c   -o foo
foo.c:40: warning: useless storage class specifier in empty declaration
g++ -c   -g -o "Debug/foo.o"  foo.c
foo.c:40: warning: ‘typedef’ was ignored in this declaration
foo.c: In function ‘char* bar(uint32)’:
foo.c:109: warning: deprecated conversion from string constant to ‘char*’
foo.c:111: warning: deprecated conversion from string constant to ‘char*’
foo.c:113: warning: deprecated conversion from string constant to ‘char*’
foo.c:115: warning: deprecated conversion from string constant to ‘char*’
g++  -g -o "Debug/foo.exe" Debug/foo.o

and the project template I used was 
Code: [Select]
TemplateName="GNU C/C++"
thanks,
Murali
« Last Edit: November 03, 2012, 07:16:32 pm by murali »

hs2

  • Senior Community Member
  • Posts: 2754
  • Hero Points: 291
Re: Weird characters in Build window
« Reply #20 on: November 04, 2012, 10:42:21 am »
@murali: I already assumed you're running a GNU compiler. Beware that cygwin emulates a UNIX environment.
Depending on the shell you're using (sh.exe / ash.exe ?) you should try to setup your environment ie. 'LANG' environment variable according to the previous postings.
I'm not sure about the details but maybe adding/modifying '<cygwin path>/etc/profile' is also a possibilty.
I think you can verify if the change works with 'set' or 'printenv' running the shell make is using.
The corresponding SHELL environment variable evaluated by make defaults to '/bin/sh' (see 'make' manual '5.3.2 Choosing the Shell')
Hope it helps.
Good luck, HS2