<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: nlsgetlocale in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839402#M57371</link>
    <description>When I run the program I get a run time error -2 not sure what this is. When I debug the error occurs in nlsgetlocale - not sure how to obatin further information</description>
    <pubDate>Thu, 21 Jun 2007 09:10:25 GMT</pubDate>
    <dc:creator>steve_konarski</dc:creator>
    <dc:date>2007-06-21T09:10:25Z</dc:date>
    <item>
      <title>nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839391#M57360</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I am trying to call the subroutine &lt;STRONG&gt;nlsgetlocale&lt;/STRONG&gt; and have the following code - (only relevant parts included)&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; USE DFNLS&lt;BR /&gt; IMPLICIT NONE &lt;/P&gt;
&lt;P&gt; INTEGER codep&lt;BR /&gt; CHARACTER*100 lang,country&lt;BR /&gt;..&lt;/P&gt;
&lt;P&gt;.. call nlsgetlocale(lang,country,codep)&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;On compilation I get the following error&lt;/P&gt;
&lt;P&gt;dfnls.lib(locale.obj) : error LNK2001: unresolved external symbol _ChangeQWINCP&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;any ideas&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2007 10:44:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839391#M57360</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2007-06-20T10:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839392#M57361</link>
      <description>I see you're still using CVF, but I tried a small test case in both CVF and Intel Fortran and didn't see this problem. How are you building this? Can you come up with a small but complete test case?&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jun 2007 13:01:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839392#M57361</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-06-20T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839393#M57362</link>
      <description>&lt;P&gt;I use Compaq Visual Fortran. This program compiled and ran OK for me...&lt;/P&gt;&lt;PRE&gt;program nsltest&lt;/PRE&gt;&lt;PRE&gt;use dfnls&lt;BR /&gt;implicit none&lt;BR /&gt;CHARACTER*100 lang,country&lt;BR /&gt;integer*4 codep&lt;/PRE&gt;&lt;PRE&gt;print *, 'Hello World'&lt;/PRE&gt;&lt;PRE&gt;codep=NLS$CurrentCodepage&lt;BR /&gt;call nlsgetlocale(lang,country,codep )&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;end program nsltest&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2007 13:19:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839393#M57362</guid>
      <dc:creator>anthonyrichards</dc:creator>
      <dc:date>2007-06-20T13:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839394#M57363</link>
      <description>&lt;P&gt;Apologies for the double post..it would appear to be a browser problem as when I posted the first message I got browser message about the web page being unreachable, so tried again...and got the same response. I then ckecked the forum to find both replies had actually got through OK!&lt;/P&gt;
&lt;P&gt;But when I tried to delete the superfluous message a couple of minutes later, I got a message about the time limit for deleting had been exceeded and to contact the forum administrator. The time limit seems to be rather short! So can you please do the honours, Steve?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2007 13:28:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839394#M57363</guid>
      <dc:creator>anthonyrichards</dc:creator>
      <dc:date>2007-06-20T13:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839395#M57364</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt; But when I tried to delete the superfluous message a couple of minutes later, I got a message about the time limit for deleting had been exceeded &lt;/P&gt;
&lt;P&gt;I had that experience too, but I was able to go back in and edit the message. The extra message body could be replaced with "Ignore this - cannot delete message"&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2007 14:01:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839395#M57364</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2007-06-20T14:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839396#M57365</link>
      <description>I took care of it.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jun 2007 14:06:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839396#M57365</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-06-20T14:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839397#M57366</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;I get good comilation with the small hello world program - BUT when i try and compile my large program get the error ,I commented out the line&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;call nlsgetlocale(lang,country,codep )&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt; in my program and added a 'dummy' subroutine&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;subroutinenlstes&lt;/P&gt;
&lt;P&gt; use dfnls&lt;BR /&gt; implicit none &lt;BR /&gt; CHARACTER*100 lang,country&lt;BR /&gt; integer*4 codep&lt;BR /&gt; print *, 'Hello World'&lt;BR /&gt;! codep=NLS$CurrentCodepage&lt;BR /&gt; call nlsgetlocale(lang,country,codep )&lt;BR /&gt; return&lt;BR /&gt;end &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;but still got the error message&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2007 14:26:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839397#M57366</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2007-06-20T14:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839398#M57367</link>
      <description>What's your build command line? You need to link with either DFQWIN.LIB (for a QuickWin application) or DFCONSOL.LIB (everything else) to resolve this reference. You'll get this with a default build but if you have customized the link you may not see it.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jun 2007 14:37:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839398#M57367</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-06-20T14:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839399#M57368</link>
      <description>Is it a mixed-language project perhaps with non-Fortran main? _ChangeQWINCP is defined in ifconsol.lib (and, AFAIK, has nothing or little to do with QuickWin).&lt;BR /&gt;&lt;BR /&gt;Quote from the manual ("Building Intel Fortran/C Mixed-Language Programs on Windows* Systems" page):&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;SPAN class="reviewC"&gt;A mixed language solution containing a Fortran library 
project should have &lt;/SPAN&gt;&lt;SPAN class="reviewC" style="font-weight: bold;"&gt;Disable 
Default Library Search Rules&lt;/SPAN&gt;&lt;SPAN class="reviewC"&gt; set to No in the IDE. To 
check this setting, choose &lt;/SPAN&gt;&lt;SPAN class="reviewC" style="font-weight: bold;"&gt;Project&amp;gt;Properties&lt;/SPAN&gt;&lt;SPAN class="reviewC"&gt; and 
then choose the Libraries category. If you change the &lt;/SPAN&gt;&lt;SPAN class="reviewC" style="font-weight: bold;"&gt;Disable Default Library Search Rules&lt;/SPAN&gt;&lt;SPAN class="reviewC"&gt; setting to Yes, you will need to explicitly add the needed 
runtime libraries to the non-Fortran project.&lt;/SPAN&gt;&lt;SPAN class="reviewB"&gt; If you 
are adding libraries explicitly, make sure you add IFCONSOL.LIB to the libraries 
of the non-Fortran project. This library is needed to perform almost any kind of 
I/O with Intel Fortran&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 20 Jun 2007 14:39:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839399#M57368</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2007-06-20T14:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839400#M57369</link>
      <description>&lt;P&gt;Compilation is OK with DFCONSOL.LIB but get a run time error in&lt;/P&gt;
&lt;P&gt;call nlsgetlocale(lang,country,codep ).&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The simple Hello world program runs OK&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2007 15:37:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839400#M57369</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2007-06-20T15:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839401#M57370</link>
      <description>And the run time error says, ????&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jun 2007 17:25:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839401#M57370</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-06-20T17:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839402#M57371</link>
      <description>When I run the program I get a run time error -2 not sure what this is. When I debug the error occurs in nlsgetlocale - not sure how to obatin further information</description>
      <pubDate>Thu, 21 Jun 2007 09:10:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839402#M57371</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2007-06-21T09:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839403#M57372</link>
      <description>&lt;PRE&gt;The 'hello world' example below&lt;/PRE&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;program nsltest&lt;BR /&gt; use dfnls&lt;BR /&gt;implicit none&lt;BR /&gt;CHARACTER*100 lang,country&lt;BR /&gt;integer*4 codep&lt;BR /&gt;print *, 'Hello World'&lt;BR /&gt;codep=NLS$CurrentCodepage&lt;BR /&gt;call nlsgetlocale(lang,country,codep )&lt;BR /&gt;print *, 'lang= ',trim(lang),';country= ',trim(country),'; code page= ',codep&lt;BR /&gt; end program nsltest&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; was created as a simple 'Fortran Console application' in CVF &lt;BR /&gt; and when compiled and run gave the output: &lt;/PRE&gt;&lt;PRE&gt;&lt;FONT color="#0000ff"&gt;Hello World&lt;BR /&gt;lang= English;country= United Kingdom; code page= 1252&lt;BR /&gt;Press any key to continue&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;The (default) project settings (debug) are:&lt;BR /&gt; &lt;BR /&gt;&lt;FONT color="#0000ff"&gt;kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib&lt;BR /&gt;advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib &lt;BR /&gt;odbc32.lib odbccp32.lib /nologo /subsystem:console &lt;BR /&gt;/incremental:no /pdb:"Debug/nsltest.pdb" /debug &lt;BR /&gt;/machine:I386 /out:"Debug/nsltest.exe" /pdbtype:sept&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;If your 'larger' program is failing when you use the code&lt;BR /&gt;in a subroutine, then I presume that it &lt;BR /&gt;may be because your project has different project settings. &lt;BR /&gt;It would be helpful to both us and yourself if you copy &lt;BR /&gt;and paste the full error message(s) that you get in your &lt;BR /&gt;next post, if there is one.&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2007 11:08:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839403#M57372</guid>
      <dc:creator>anthonyrichards</dc:creator>
      <dc:date>2007-06-21T11:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: nlsgetlocale</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839404#M57373</link>
      <description>&lt;P&gt;&lt;FONT face="Garamond"&gt;Apologies for delay in posting - I have been away&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;I still having problems with the program crashing - however I have a further query before moving on . I have the program&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="Garamond"&gt;program nlstest&lt;BR /&gt;use dfnls&lt;BR /&gt;implicit none &lt;BR /&gt;integer*2 uni1(1),uni2(1)&lt;BR /&gt;character*30 lang,country&lt;BR /&gt;character*2 c2&lt;BR /&gt;integer*4 codep,j1,j2 ,n&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;&lt;BR /&gt;&lt;BR /&gt;call nlsgetlocale(lang,country,codep)&lt;BR /&gt;write(*,*)'locale ',lang(1:8),country(1:8),codep&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;do n=176,190&lt;BR /&gt; uni1(1)= n&lt;BR /&gt; call nlsetlocale(lang,country,codep)&lt;BR /&gt; j1=mbconvertunicodetomb(uni1,c2)&lt;BR /&gt; j2=mbconvertmbtounicode(c2,uni2)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt; write(*,*)uni1(1),j1,j2,' ',c2(1:j1),uni2(1),' ',char(n)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;enddo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt; stop&lt;BR /&gt; end &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;on an english set up 'machine' i get&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;localeEnglish United K 1252&lt;BR /&gt; 176 1 1  176 &lt;BR /&gt; 177 1 1  177 &lt;BR /&gt; 178 1 1  178 &lt;BR /&gt; 179 1 1  179 &lt;BR /&gt; 180 1 1  180 &lt;BR /&gt; 181 1 1  181 &lt;BR /&gt; 182 1 1  182 &lt;BR /&gt; 183 1 1  183 &lt;BR /&gt; 184 1 1  184 &lt;BR /&gt; 185 1 1  185 &lt;BR /&gt; 186 1 1&amp;amp;n
bsp;  186 &lt;BR /&gt; 187 1 1  187 &lt;BR /&gt; 188 1 1  188 &lt;BR /&gt; 189 1 1  189 &lt;BR /&gt; 190 1 1  190 &lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;and on the japanese set up machine i get&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;locale English United S 932&lt;BR /&gt; 176 2 1  176 &lt;BR /&gt; 177 2 1 } 177 &lt;BR /&gt; 178 1 1 2 50 &lt;BR /&gt; 179 1 1 3 51 &lt;BR /&gt; 180 2 1 L 180 &lt;BR /&gt; 181 2 1  956 &lt;BR /&gt; 182 2 1  182 &lt;BR /&gt; 183 2 1 E 12539 &lt;BR /&gt; 184 2 1 C -244 &lt;BR /&gt; 185 1 1 1 49 &lt;BR /&gt; 186 1 1 o 111 &lt;BR /&gt; 187 2 1  8811 &lt;BR /&gt; 188 1 1 ? 63 &lt;BR /&gt; 189&amp;amp;
nbsp; 1 1 ? 63 &lt;BR /&gt; 190 1 1 ? 63 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Garamond"&gt;On the Japanese machine, why are some of the characters mulibyte and why do you not get the same unicode integer valus out of &lt;STRONG&gt;mbconvertmbtounicode&lt;/STRONG&gt; as the input one to &lt;STRONG&gt;mbconvertunicodetomb&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2007 15:32:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/nlsgetlocale/m-p/839404#M57373</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2007-06-27T15:32:41Z</dc:date>
    </item>
  </channel>
</rss>

