# File lib/amazon/search.rb, line 446
      def locale=(l)
        old_locale = @locale ||= nil
        @locale = validate_locale(l)

        # Use the new locale's default ID if the ID currently in use is the
        # current locale's default ID.
        @id = DEFAULT_ID[@locale] if @id == DEFAULT_ID[old_locale]

        # We must now set up a new HTTP connection to the correct server for
        # this locale, unless the same server is used for both.
        connect(@locale) unless LOCALES[@locale] == LOCALES[old_locale]